Fix __DEV__ value for minified build

This commit is contained in:
MoyuScript 2017-12-09 18:00:45 +08:00
parent 87ab92946e
commit 768ca87e50

View File

@ -44,7 +44,14 @@ module.exports = [
libraryTarget: 'umd'
},
module: modules,
plugins: plugins.concat([new UglifyJSPlugin(), new webpack.BannerPlugin(banner)])
plugins: [
new webpack.DefinePlugin({
'__DEV__': false,
'__VERSION__': JSON.stringify(pkg.version)
}),
new UglifyJSPlugin(),
new webpack.BannerPlugin(banner)
]
},
{
entry: './src/renderer/RefTestRenderer.js',