mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: add options.production to disable minimalCLI for local builds
This commit is contained in:
parent
f2e26b3c04
commit
7e91ae1d13
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user