2.3.17 • Published 1 year ago
schematics-scss-migrate v2.3.17
Getting Started With SCSS-Migrate
A schematic to migrate from CSS to SCSS (or vice versa) stylesheet format for an Angular CLI project
Installation
npm i --save-dev schematics-scss-migrate
Or using the CLI
ng add schematics-scss-migrate
Note that the ng add
command still adds the package to the devDependencies
Usage
In your Angular CLI project, run ng g schematics-scss-migrate:scss-migrate
.
This will do the following in the consuming project:
- Rename all the stylesheets in the
src
folder recursively - Alter the
styleUrls
in respective component classes to point to the new file names for stylesheets - Updates the component styles schematics value in the
angular.json
file or creates one if the schematic does not exist, and - Renames all
styles.css
references tostyles.scss
in theangular.json
file
Notes
- Try first with the
--dry-run=true
flag - When asked which project to migrate, use the project name from the
angular.json
file. It is case sensitive.
2.3.17
1 year ago
2.3.16
1 year ago
2.3.15
1 year ago
1.3.15
2 years ago
1.3.14
3 years ago
1.3.13
3 years ago
1.3.12
3 years ago
1.2.12
3 years ago
1.2.11
3 years ago
1.2.10
3 years ago
1.2.9
3 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago