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 b830f88 commit 34103c0Copy full SHA for 34103c0
gulpfile.babel.js
@@ -81,6 +81,7 @@ gulp.task('build:webpack', () => {
81
process.env.NODE_ENV = (production == true) ? 'production' : 'development'
82
let plugins = [
83
new webpack.optimize.CommonsChunkPlugin({name: "vendor", filename: "vendor.bundle.js"}),
84
+ new webpack.DefinePlugin({'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)})
85
]
86
if (production) plugins.push(new webpack.optimize.UglifyJsPlugin({compress: { warnings: false }, sourceMap: false }))
87
return gulp.src(resource.src.webpack.babel)
0 commit comments