How it works...
With this change, we have told Angular-CLI to build .scss files instead of .css in our project. It will also automatically scaffold out new blueprints that have styles with .scss extensions instead. Changing this configuration initially does not alter anything in our existing Angular build, and any CSS style files we created before this configuration change will not be affected. We have to manually rename files and update style references in our Angular resources to use the .scss extension. In a freshly generated Angular-CLI application, we should only have two of these files: /src/styles.css and /src/app/app.component.css. In an existing application, you may have many more style files that would need to be renamed.
Renaming ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access