To migrate from CSS to SCSS using this package, all you have to do is, install the package, ideally as a dev-dependency and run the following : ng g schematics-scss-migrate:scss-migrateĪnd that’s it, the above command did the following: Read more on what this schematic package does on NPM. Using the NPM package schematics-scss-migrateĪ quick and easy way to do the migration is to use the schematic NPM package schematics-scss-migrate. I presume you have some understanding of these topics. NOTE: In this article, we will not cover what SCSS and Angular Schematics are. How we can use NPM package renamer to perform the migration.How we can perform the migration manually i.e.How we can use an Angular schematics NPM package to perform the migration with just one command.On second thought, you know that this transition could be daunting because your application has already gotten big and complex.īut, as explained by Thabo Ambrose in his article, there are ways to do this migration smoothly. The reason could be anything to use CSS instead of SCSS, but now you want to switch to using the SCSS stylesheet format in your application. Maybe you were not familiar with CSS pre-processors like SCSS while starting with a new app. While creating a new Angular application using Angular CLI, you might have forgotten to use the style=scss flag or you simply selected CSS as your stylesheet when CLI prompts for it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |