-
Notifications
You must be signed in to change notification settings - Fork 11.9k
feat(@angular/build): add sass
to stylePreprocessorOptions
in application builder
#28627
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
Conversation
32a2409
to
40dabd6
Compare
40dabd6
to
453dd17
Compare
sassOptions
to stylePreprocessorOptions
in application buildersassOptions
to stylePreprocessorOptions
in application builder
453dd17
to
1e3cf70
Compare
4b3c2d8
to
46387b2
Compare
sassOptions
to stylePreprocessorOptions
in application buildersass
to stylePreprocessorOptions
in application builder
46387b2
to
e766f16
Compare
…lication builder This commit introduces the functionality to configure a limited number of options for Sass processing in the Angular application builder. The following options have been added to enhance the Sass integration: - **futureDeprecations**: Specifies features that are scheduled for deprecation. The compiler will treat these as active and emit warnings as necessary. - **fatalDeprecations**: Identifies Sass features that are already deprecated and will cause build failures if used. - **silenceDeprecations**: This option suppresses deprecation warnings for specified versions. Usage example: ```json "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputHashing": "none", "namedChunks": true, "stylePreprocessorOptions": { "sass": { "futureDeprecations": ["color-functions"], "fatalDeprecations": ["color-functions"], "silenceDeprecations": ["1.77.0"] } } } } } ``` For more information about these options, please refer to the Sass documentation: https://sass-lang.com/documentation/js-api/interfaces/options/ Closes angular#28587
e766f16
to
4789bd2
Compare
Hi, I just wanted to add the necessary config for Angular V19 to get rid of the sass compiler deprecation warnings:
Just in case sb. lands here and is looking for the same solution as I did :-) |
Another note to @alan-agius4: Your example is misleading, it should look like this:
This is due to the fact, that only for "fatalDeprecations" you can pass in a sass version, not for the other two. |
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. |
This commit introduces the functionality to configure a limited number of options for Sass processing in the Angular application builder. The following options have been added to enhance the Sass integration:
Usage example:
For more information about these options, please refer to the Sass documentation: https://sass-lang.com/documentation/js-api/interfaces/options/
Closes #28587