Browse Source

Should be separate file on dev/prod webpack config for real

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

+ 5 - 0
webpack.config.js

@@ -31,6 +31,11 @@ module.exports = {
     ]
   },
   plugins: [
+    new webpack.DefinePlugin({
+      "process.env": {
+        NODE_ENV: JSON.stringify("production")
+      }
+    })
     //new webpack.ProvidePlugin({
     //  jQuery: "jquery",
     //  $: "jquery",