fix: add options.production to disable minimalCLI for local builds

This commit is contained in:
Pooya Parsa 2018-03-21 09:59:18 +03:30
parent f2e26b3c04
commit 7e91ae1d13
2 changed files with 3 additions and 2 deletions

View File

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

View File

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