mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
e19c1942c3
# Conflicts: # src/index.js # src/sprites/clone.js # src/worker.js
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
|
|
}
|
|
})
|
|
]
|
|
};
|