Skip to content

Commit 9bc0fb0

Browse files
committed
Fix __DEV__ value for minified build
1 parent d83bc02 commit 9bc0fb0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

webpack.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ module.exports = [
4444
libraryTarget: 'umd'
4545
},
4646
module: modules,
47-
plugins: plugins.concat([new UglifyJSPlugin(), new webpack.BannerPlugin(banner)])
47+
plugins: [
48+
new webpack.DefinePlugin({
49+
'__DEV__': false,
50+
'__VERSION__': JSON.stringify(pkg.version)
51+
}),
52+
new UglifyJSPlugin(),
53+
new webpack.BannerPlugin(banner)
54+
]
4855
},
4956
{
5057
entry: './src/renderer/RefTestRenderer.js',

0 commit comments

Comments
 (0)