ej2-showcase-javascript-dia.../webpack.config.js

23 строки
541 B
JavaScript

var webpack = require('webpack');
module.exports = {
entry: "./src/common/index.js",
entry: { 'src/common/index.min': './src/common/index' },
output: {
path: __dirname + '/',
filename: '[name].js',
libraryTarget: 'this'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
beautify: false,
output: {
comments: false
},
compress: {
warnings: false,
unused: true
}
})
]
}