fix(cli): fallback to minimalCLI if TTY is not available

This commit is contained in:
Pooya Parsa 2018-03-23 20:14:37 +04:30
parent d60438df92
commit d7956d5fd4
2 changed files with 3 additions and 2 deletions

View File

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

View File

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