1
0
mirror of https://github.com/niklasvh/html2canvas.git synced 2023-08-10 21:13:10 +03:00

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

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