Browse Source

webpack.config.js: NODE_ENV

Sotaro KARASAWA 10 years ago
parent
commit
b1def13c85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webpack.config.js

+ 1 - 1
webpack.config.js

@@ -33,7 +33,7 @@ module.exports = {
   plugins: [
     new webpack.DefinePlugin({
       "process.env": {
-        NODE_ENV: JSON.stringify("production")
+        NODE_ENV: process.env.NODE_ENV || "production"
       }
     })
     //new webpack.ProvidePlugin({