Skip to content

Commit 34103c0

Browse files
committed
NODE_ENV 変数渡し不備の修正
1 parent b830f88 commit 34103c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gulpfile.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ gulp.task('build:webpack', () => {
8181
process.env.NODE_ENV = (production == true) ? 'production' : 'development'
8282
let plugins = [
8383
new webpack.optimize.CommonsChunkPlugin({name: "vendor", filename: "vendor.bundle.js"}),
84+
new webpack.DefinePlugin({'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)})
8485
]
8586
if (production) plugins.push(new webpack.optimize.UglifyJsPlugin({compress: { warnings: false }, sourceMap: false }))
8687
return gulp.src(resource.src.webpack.babel)

0 commit comments

Comments
 (0)