mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
30 lines
620 B
JavaScript
30 lines
620 B
JavaScript
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'vm': './src/index.js',
|
|
'vm.min': './src/index.js',
|
|
'vm.worker': './src/worker.js'
|
|
},
|
|
output: {
|
|
path: __dirname,
|
|
filename: '[name].js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.json$/,
|
|
loader: 'json-loader'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
include: /\.min\.js$/,
|
|
minimize: true,
|
|
compress: {
|
|
warnings: false
|
|
}
|
|
})
|
|
]
|
|
};
|