scratch-vm/webpack.config.js

31 lines
620 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',
2016-06-21 15:30:27 -04:00
'vm.min': './src/index.js',
'vm.worker': './src/worker.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
})
]
};