We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3189011 commit 547a39fCopy full SHA for 547a39f
webpack.config.js
@@ -10,7 +10,7 @@ var plugins = [];
10
if (process.argv.indexOf('-p') > -1) { //生产环境
11
plugins.push(new webpack.DefinePlugin({ //编译成生产版本
12
'process.env': {
13
- NODE_ENV: JSON.stringify('"production"')
+ NODE_ENV: JSON.stringify('production')
14
}
15
}));
16
publicPath = '/react-cnode/dist/';
0 commit comments