Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e6e47e

Browse files
AlanKeen Yee Liau
Alan
authored and
Keen Yee Liau
committedFeb 19, 2019
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 2b2d356 commit 9e6e47e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

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

Lines changed: 4 additions & 4 deletions
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)
Please sign in to comment.