diff --git a/lib/common/nuxt.config.js b/lib/common/nuxt.config.js index b66b295bdf..47f818d0f2 100644 --- a/lib/common/nuxt.config.js +++ b/lib/common/nuxt.config.js @@ -4,10 +4,11 @@ import isCI from 'is-ci' export default { // Information about running environment dev: process.env.NODE_ENV !== 'production', + production: process.env.NODE_ENV === 'production', debug: undefined, // = dev test: process.env.NODE_ENV === 'test', ci: Boolean(isCI), - minimalCLI: undefined, // = ci || test || !dev + minimalCLI: undefined, // = ci || test || production // Mode mode: 'universal', diff --git a/lib/common/options.mjs b/lib/common/options.mjs index f1f71606b5..de4b5aa513 100644 --- a/lib/common/options.mjs +++ b/lib/common/options.mjs @@ -128,7 +128,7 @@ Options.from = function (_options) { // minimalCLI if (options.minimalCLI === undefined) { - options.minimalCLI = options.ci || options.test || !options.dev + options.minimalCLI = options.ci || options.test || options.production } // Apply default hash to CSP option