webpack-umd-external
v1.0.2
Published
make external object for umd library.
Downloads
1,214
Readme
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'
})
};