2.3.17 • Published 2 years ago

schematics-scss-migrate v2.3.17

Weekly downloads
1,109
License
MIT
Repository
github
Last release
2 years ago

Getting Started With SCSS-Migrate

A schematic to migrate from CSS to SCSS (or vice versa) stylesheet format for an Angular CLI project

alt text

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 to styles.scss in the angular.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

2 years ago

2.3.16

2 years ago

2.3.15

2 years ago

1.3.15

3 years ago

1.3.14

4 years ago

1.3.13

5 years ago

1.3.12

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago