mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
32 lines
702 B
JavaScript
32 lines
702 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'
|
|
}, {
|
|
test: require.resolve('./src/index.js'),
|
|
loader: 'expose?VirtualMachine'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
include: /\.min\.js$/,
|
|
minimize: true,
|
|
compress: {
|
|
warnings: false
|
|
}
|
|
})
|
|
]
|
|
};
|