Showing
1 changed file
with
2 additions
and
0 deletions
@@ -204,6 +204,8 @@ gulp.task('webpack', (done) => { | @@ -204,6 +204,8 @@ gulp.task('webpack', (done) => { | ||
204 | const proConfig = Object.assign({}, webpackConfig); | 204 | const proConfig = Object.assign({}, webpackConfig); |
205 | 205 | ||
206 | proConfig.output.path = dist.js; | 206 | proConfig.output.path = dist.js; |
207 | + | ||
208 | + // TODO: 生产环境加载的插件独立出来 | ||
207 | proConfig.plugins.push(new webpack.DefinePlugin({ | 209 | proConfig.plugins.push(new webpack.DefinePlugin({ |
208 | 'process.env': { | 210 | 'process.env': { |
209 | NODE_ENV: '"production"' | 211 | NODE_ENV: '"production"' |
-
Please register or login to post a comment