Fix __DEV__ value for minified build

This commit is contained in:
Niklas von Hertzen 2017-12-09 18:00:45 +08:00
parent d83bc0247a
commit 9bc0fb0bd1

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',