New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cc-external/fullcalendar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cc-external/fullcalendar

Install package "fullcalendar" with externals configuration for "cc-webpack-externals-plugin"

latest
npmnpm
Version
5.6.2
Version published
Maintainers
1
Created
Source

Configuration Package for @codecoupler/cc-webpack-externals-plugin

If you use the plugin @codecoupler/cc-webpack-externals-plugin in your Webpack configuration you can install with this package the NPM module fullcalendar and automatically configure this as external library. The module will not be included in your library bundle.

Usage:

npm i @cc-external/fullcalendar

The version number of this package matches the major and minor number of the module fullcalendar that is included as dependency. The patch number do not correspond to the module patch number.

Remarks

Only the base files will be included in your externals definition. You have to add language files by yourself.

You can do this in your webpack.externals.js:

module.exports = [
  {
    module: "fullcalendar",
    entries: ["locales/de.js"],
  },
];

How to use the language files please red the documentation here: https://fullcalendar.io/docs/locale

If you want to load the needed JavaScript and stylesheet files dynamically in your code you must use the path to the module. You can read the path from the global variable ccExternals["fullcalendar"].

Here an example how to implement with jQuery:

let path = window.ccExternals["fullcalendar"];
await $.getScript(`${path}/locales/de.js`);

Keywords

CodeCoupler

FAQs

Package last updated on 16 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts