mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
react prod build
This commit is contained in:
parent
2d8c6c3d89
commit
25624494ad
1 changed files with 6 additions and 1 deletions
|
|
@ -33,6 +33,11 @@ module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||||
new webpack.ExternalsPlugin('commonjs', ['electron']),
|
new webpack.ExternalsPlugin('commonjs', ['electron']),
|
||||||
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } })
|
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }),
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
'process.env': {
|
||||||
|
'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
|
||||||
|
}
|
||||||
|
})
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue