Skip to content

Commit

Permalink
fix(@schematics/angular): add file extensions to style prompt
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alan authored and kyliau committed Feb 19, 2019
1 parent 2b2d356 commit 9e6e47e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/schematics/angular/ng-new/schema.json
Expand Up @@ -125,10 +125,10 @@
"message": "Which stylesheet format would you like to use?",
"type": "list",
"items": [
{ "value": "css", "label": "CSS" },
{ "value": "sass", "label": "Sass [ http://sass-lang.com ]" },
{ "value": "less", "label": "Less [ http://lesscss.org ]" },
{ "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
{ "value": "css", "label": "CSS (.css )" },
{ "value": "sass", "label": "Sass (.scss) [ http://sass-lang.com ]" },
{ "value": "less", "label": "Less (.less) [ http://lesscss.org ]" },
{ "value": "styl", "label": "Stylus (.styl) [ http://stylus-lang.com ]" }
]
}
},
Expand Down

0 comments on commit 9e6e47e

Please sign in to comment.