diff --git a/webpack.config.js b/webpack.config.js index f971c25..f80773e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',