Skip to content

Commit

Permalink
feat(@angular/cli): update optimization options
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and alexeagle committed Dec 6, 2018
1 parent af67b49 commit 6b65e4c
Showing 1 changed file with 64 additions and 6 deletions.
70 changes: 64 additions & 6 deletions packages/angular/cli/lib/config/schema.json
Expand Up @@ -607,9 +607,28 @@
"additionalProperties": false
},
"optimization": {
"type": "boolean",
"description": "Enables optimization of the build output.",
"default": false
"oneOf": [
{
"type": "object",
"properties": {
"scripts": {
"type": "boolean",
"description": "Enables optimization of the scripts output.",
"default": true
},
"styles": {
"type": "boolean",
"description": "Enables optimization of the styles output.",
"default": true
}
},
"additionalProperties": false
},
{
"type": "boolean"
}
]
},
"fileReplacements": {
"description": "Replace files with other files in the build.",
Expand Down Expand Up @@ -1067,8 +1086,28 @@
"default": true
},
"optimization": {
"type": "boolean",
"description": "Enables optimization of the build output."
"description": "Enables optimization of the build output.",
"oneOf": [
{
"type": "object",
"properties": {
"scripts": {
"type": "boolean",
"description": "Enables optimization of the scripts output.",
"default": true
},
"styles": {
"type": "boolean",
"description": "Enables optimization of the styles output.",
"default": true
}
},
"additionalProperties": false
},
{
"type": "boolean"
}
]
},
"aot": {
"type": "boolean",
Expand Down Expand Up @@ -1515,9 +1554,28 @@
"additionalProperties": false
},
"optimization": {
"type": "boolean",
"description": "Enables optimization of the build output.",
"default": false
"oneOf": [
{
"type": "object",
"properties": {
"scripts": {
"type": "boolean",
"description": "Enables optimization of the scripts output.",
"default": true
},
"styles": {
"type": "boolean",
"description": "Enables optimization of the styles output.",
"default": true
}
},
"additionalProperties": false
},
{
"type": "boolean"
}
]
},
"fileReplacements": {
"description": "Replace files with other files in the build.",
Expand Down

0 comments on commit 6b65e4c

Please sign in to comment.