mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(cli): fallback to minimalCLI if TTY is not available
This commit is contained in:
parent
d60438df92
commit
d7956d5fd4
@ -9,7 +9,8 @@ export default {
|
||||
debug: undefined, // = dev
|
||||
test: process.env.NODE_ENV === 'test',
|
||||
ci: Boolean(isCI),
|
||||
minimalCLI: undefined, // = ci || test || production
|
||||
tty: Boolean(process.stdout.isTTY),
|
||||
minimalCLI: undefined, // = ci || test || production || !tty
|
||||
|
||||
// Mode
|
||||
mode: 'universal',
|
||||
|
@ -128,7 +128,7 @@ Options.from = function (_options) {
|
||||
|
||||
// minimalCLI
|
||||
if (options.minimalCLI === undefined) {
|
||||
options.minimalCLI = options.ci || options.test || options.production
|
||||
options.minimalCLI = options.ci || options.test || options.production || !options.tty
|
||||
}
|
||||
|
||||
// Apply default hash to CSP option
|
||||
|
Loading…
Reference in New Issue
Block a user