-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue
Description
🐞 Bug report
According to the release notes for version 11 (https://github.com/angular/angular-cli/releases/tag/v11.0.0-next.0 ) ExtractCss property can now be removed from angular.json, because its default value is set to true. However, if I don't explicitly set it to true, my project css is loaded in style tags, instead of the expected stylesheet link.
🔬 Minimal Reproduction
This can be reproduced on a new instance.
- Create a new project with scss styles.
- go to angular.json and add "extractCss": true to the build options
- Result: the project styles are loaded in a stylesheet link:
- Remove the "extractCss": false and build the project again
- Result: Styles are loaded in <style> tags.
Expected: The behavior shouldn't change and styles should be loaded in a stylesheet link.
At least this is how the breaking change has been described in your release notes:
@angular-devkit/build-angular: deprecate extractCss browser builder option (dd26018)
Browser builder extractCss option default value has been changed from false to true. This is to reflect the default behaviour when this deprecated option is removed.
Thank you for your help. :)
Metadata
Metadata
Assignees
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue