Skip to content

Commit e2405c9

Browse files
committed
fix: fix warning about react for prod build
1 parent 2baf32c commit e2405c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ const config = {
5454
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
5555
}),
5656
new webpack.DefinePlugin({
57-
__DEVTOOLS__: process.env.NODE_ENV !== 'production'
57+
__DEVTOOLS__: process.env.NODE_ENV !== 'production',
58+
'process.env': {
59+
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
60+
}
5861
})
5962
],
6063
progress: true,

0 commit comments

Comments
 (0)