Parcourir la source

webpack.config.js: NODE_ENV

Sotaro KARASAWA il y a 9 ans
Parent
commit
b1def13c85
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      webpack.config.js

+ 1 - 1
webpack.config.js

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