From 742ea42f9737d2e7d98c42544a79297d305b0252 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 26 Feb 2018 14:44:13 +0330 Subject: [PATCH] webpack: process.env.NODE_ENV are set to production or development --- lib/builder/webpack/client.config.js | 3 --- lib/builder/webpack/server.config.js | 3 --- 2 files changed, 6 deletions(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 87e40abe28..3a6c1663bf 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -79,9 +79,6 @@ module.exports = function webpackClientConfig() { config.plugins.push( new webpack.DefinePlugin( Object.assign(env, { - 'process.env.NODE_ENV': JSON.stringify( - this.options.env.NODE_ENV || (this.options.dev ? 'development' : 'production') - ), 'process.env.VUE_ENV': JSON.stringify('client'), 'process.mode': JSON.stringify(this.options.mode), 'process.browser': true, diff --git a/lib/builder/webpack/server.config.js b/lib/builder/webpack/server.config.js index e92939f81f..064423742c 100644 --- a/lib/builder/webpack/server.config.js +++ b/lib/builder/webpack/server.config.js @@ -46,9 +46,6 @@ module.exports = function webpackServerConfig() { }), new webpack.DefinePlugin( Object.assign(env, { - 'process.env.NODE_ENV': JSON.stringify( - this.options.env.NODE_ENV || (this.options.dev ? 'development' : 'production') - ), 'process.env.VUE_ENV': JSON.stringify('server'), 'process.mode': JSON.stringify(this.options.mode), 'process.browser': false,