webpack-umd-external

1.0.2 • Public • Published

Install

npm install -D webpack-umd-external

Usage

var webpackUMDExternal = require('webpack-umd-external');
 
module.exports = {
  entry: {
    'myModule': './src/my_module.js'
  },
  output: {
    path: './dist/',
    filename: 'my_module.js',
    library: 'MyModule',
    libraryTarget: 'umd'
  },
  externals: transformUMDExternal({
    'jquery': '$',
    'lodash': '_',
    'q': 'Q'
  })
};

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-umd-external

Weekly Downloads

229

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ironhee