-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng new with --style=sass generates angular.json incorect infomation #13659
Comments
I'm sorry, but we don't understand the problem you are reporting. The |
@alan-agius4 sorry my bad. I known we do not support .sass any more. But when we create new app and sass is selected from interactive mode, the CLI still put sass as default component style preprocessor. As expected, it should generate as following: this code is not correct: if (options.style && options.style !== Style.Css) {
(schematics['@schematics/angular:component'] as JsonObject).style = options.style;
} |
Style can be both the extension of the preprocessor name. As a mater of fact we lean in favor towards the later. So style should be |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Tested on version 7.3.1
Description
When generating a new app and selecting sass from the prompt, scss files are generated as this MR #13552, but the
angular.json
file tries to reference style for component assass
:🔬 Minimal Reproduction
ng new app
routing -> no
styles -> sass
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
Update the following lines:
angular-cli/packages/schematics/angular/application/index.ts
Lines 164 to 189 in 86356a7
to:
The text was updated successfully, but these errors were encountered: