Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

A small tool to extract the inline styles from an Angular project

License

Notifications You must be signed in to change notification settings

nrawe/ng-extract-inline-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract Angular Inline Styles

A small tool to extract the style and [style] declarations from the templates in an Angular project to a set of high-specificity selectors.

Note: this tool is as is and not actively maintained.

Extract

Usage

cd /path/to/my/angular-project
/path/to/ng-extract-inline-styles extract

Example Output

/**
 * /path/to/component1/component1.template.html
 */

.HOuhgX {
  margin: 0;
}

.bYoufg {
  display: none;
}

/**
 * /path/to/component2/component2.template.html
 */

.Queod {
  background-color: red;
  margin: 0;
  z-index: 100;
}

Scoring

Usage

cd /path/to/my/angular-project
/path/to/ng-extract-inline-styles score

Example Output

Component Name,Score
my-component,100

License

MIT

About

A small tool to extract the inline styles from an Angular project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published