Explorar o código

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

Sotaro KARASAWA %!s(int64=10) %!d(string=hai) anos
pai
achega
fa9928a5db
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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",