webpack: process.env.NODE_ENV are set to production or development

This commit is contained in:
Pooya Parsa 2018-02-26 14:44:13 +03:30
parent 32aeeab0ae
commit 742ea42f97
2 changed files with 0 additions and 6 deletions

View File

@ -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,

View File

@ -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,