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:
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',
|
||||
|
Loading…
Reference in New Issue
Block a user