scratch-vm/webpack.config.js

30 lines
580 B
JavaScript
Raw Normal View History

2016-04-18 17:20:30 -04:00
var webpack = require('webpack');
module.exports = {
entry: {
'vm': './src/index.js',
'vm.min': './src/index.js'
2016-04-18 17:20:30 -04:00
},
output: {
path: __dirname,
filename: '[name].js'
},
module: {
loaders: [
{
test: /\.json$/,
loader: 'json-loader'
}
]
},
2016-04-18 17:20:30 -04:00
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true,
compress: {
warnings: false
}
2016-04-18 17:20:30 -04:00
})
]
};