mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
08b40b4d1d
* Take out worker code * Fix Blockly event listening (minus worker) * Recompile Sept. 13
29 lines
580 B
JavaScript
29 lines
580 B
JavaScript
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'vm': './src/index.js',
|
|
'vm.min': './src/index.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
|
|
}
|
|
})
|
|
]
|
|
};
|