Socket
Book a DemoInstallSign in
Socket

schematics-scss-migrate

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schematics-scss-migrate

A schematic to migrate from CSS to SCSS stylesheet format for an Angular CLI project

2.3.17
latest
Source
npmnpm
Version published
Weekly downloads
8.5K
2.09%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

schematics

FAQs

Package last updated on 25 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.