Skip to content

Commit e83667a

Browse files
alan-agius4kara
authored andcommitted
fix(bazel): remove unsupported Css pre-processors from ng new (#31234)
Under Bazel, we don't yet support Stylus and Less, and thus we should not offer the users to generate applications which are known not to work. Closes #31209 PR Close #31234
1 parent 805fc86 commit e83667a

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎packages/bazel/src/schematics/ng-new/schema.d.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ export interface CommitObject {
9696
*/
9797
export declare enum Style {
9898
Css = "css",
99-
Less = "less",
10099
Sass = "sass",
101100
Scss = "scss",
102-
Styl = "styl"
103101
}
104102
/**
105103
* The view encapsulation strategy to use in the initial project.

‎packages/bazel/src/schematics/ng-new/schema.json‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,15 @@
117117
"enum": [
118118
"css",
119119
"scss",
120-
"sass",
121-
"less",
122-
"styl"
120+
"sass"
123121
],
124122
"x-prompt": {
125123
"message": "Which stylesheet format would you like to use?",
126124
"type": "list",
127125
"items": [
128126
{ "value": "css", "label": "CSS" },
129127
{ "value": "scss", "label": "SCSS [ http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax ]" },
130-
{ "value": "sass", "label": "Sass [ http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html ]" },
131-
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
132-
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ] " }
128+
{ "value": "sass", "label": "Sass [ http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html ]" }
133129
]
134130
}
135131
},

0 commit comments

Comments
 (0)