1.0.2 • Published 10 years ago
webpack-umd-external v1.0.2
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'
})
};