when optimizing tests, only optimize tests by default
This commit is contained in:
parent
6cd6399926
commit
f239b60fe5
|
@ -71,7 +71,11 @@ module.exports = Joi.object({
|
|||
|
||||
optimize: Joi.object({
|
||||
enabled: Joi.boolean().default(true),
|
||||
bundleFilter: Joi.string().default('*'),
|
||||
bundleFilter: Joi.string().when('tests', {
|
||||
is: true,
|
||||
then: Joi.default('tests'),
|
||||
otherwise: Joi.default('*')
|
||||
}),
|
||||
bundleDir: Joi.string().default(fromRoot('optimize/bundles')),
|
||||
viewCaching: Joi.boolean().default(Joi.ref('$prod')),
|
||||
watch: Joi.boolean().default(false),
|
||||
|
|
Loading…
Reference in a new issue