@cisco-msx/webpack-externals

2.2.0 • Public • Published

@cisco-msx/webpack-externals

External module configuration for Webpack. Include in your Webpack configuration to omit modules from a bundle which are provided by the MSX platform, e.g. @angular/core, @angular/common, etc.

Usage

Install @cisco-msx/webpack-externals in your package's devDependencies

$ npm install --save-dev @cisco-msx/webpack-externals

Import and include its configuration in your Webpack configuration's externals object.

// webpack.config.js
const msxExternals = require('@cisco-msx/webpack-externals');

module.exports = () => {
  return {
    externals: {
      ...msxExternals,
      // Other externals for your bundle can go here
    }
  }
};

Omitted Modules

By using this package you will omit the following modules from your bundle and instead pick them up from window references provided by the MSX platform UI.

  • angular
  • jquery
  • lodash
  • moment
  • d3
  • rxjs
  • rxjs/operators
  • @angular/core
  • @angular/common
  • @angular/common/http
  • @angular/compiler
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/upgrade/static
  • @angular/forms
  • @uirouter/core
  • @uirouter/angular
  • @uirouter/angularjs
  • @cisco-msx/root-injector
  • @cisco-msx/http
  • @cisco-msx/common
  • @cisco-msx/devices
  • @cisco-msx/forms
  • @cisco-msx/forms/validators
  • @cisco-msx/sites
  • @cisco-msx/template-management

Readme

Keywords

none

Package Sidebar

Install

npm i @cisco-msx/webpack-externals

Weekly Downloads

1

Version

2.2.0

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • caygin
  • eturriff
  • vdhaneku
  • rathsaba
  • jjurkiew
  • hagraham
  • posze
  • nstehr-cisco