Skip to content

Commit

Permalink
NODE_ENV 変数渡し不備の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
jkazama committed Nov 16, 2017
1 parent 1f20cc6 commit 0bd3c0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ gulp.task('revision', (callback) =>
// compile Webpack [ ES6(Babel) / Vue -> Multipage ]
gulp.task('build:webpack', () => {
process.env.NODE_ENV = (production == true) ? 'production' : 'development'
let plugins = [new webpack.DefinePlugin({'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)})]
if (production) plugins.push(new webpack.optimize.UglifyJsPlugin({compress: { warnings: false }}))
return gulp.src([resource.src.webpack.babel])
.pipe(named())
Expand Down

0 comments on commit 0bd3c0e

Please sign in to comment.