Skip to content

Commit 81acdd7

Browse files
AlanKeen Yee Liau
Alan
authored and
Keen Yee Liau
committed
fix(@schematics/angular): add file extensions to style prompt
This is causing major confusion as users are not aware that choosing `sass` will generate files with `scss` extension. Another reason for this confusion is that in other schematics, `style` accepts either a preprocessor or file extension while in this prompt only a preprocessor is provided.
1 parent 8979790 commit 81acdd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/schematics/angular/ng-new/schema.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@
125125
"message": "Which stylesheet format would you like to use?",
126126
"type": "list",
127127
"items": [
128-
{ "value": "css", "label": "CSS" },
129-
{ "value": "sass", "label": "Sass [ http://sass-lang.com ]" },
130-
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
131-
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
128+
{ "value": "css", "label": "CSS (.css )" },
129+
{ "value": "sass", "label": "Sass (.scss) [ http://sass-lang.com ]" },
130+
{ "value": "less", "label": "Less (.less) [ http://lesscss.org ]" },
131+
{ "value": "styl", "label": "Stylus (.styl) [ http://stylus-lang.com ]" }
132132
]
133133
}
134134
},

0 commit comments

Comments
 (0)