Skip to content

Commit

Permalink
Add global styling analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Blazevic committed Apr 10, 2020
1 parent d74fbfb commit bfc1ddb
Show file tree
Hide file tree
Showing 18 changed files with 149 additions and 565 deletions.
3 changes: 2 additions & 1 deletion .ngx-unused-css.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"file": "app.component.scss",
"selectors": [".unused-to-ignore"]
}
]
],
"globalStyles": "examples/simpleAngularApp/src/styles.scss"
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ _Optionally, override config path with CLI param: `ngx-unused-css --config=other

Path to a project, for Angular it is usually `src/app`

### globalStyles

- Type: `String`
- Default: `null`

Path to global styles, usally it is `src/styles.scss`

### importer

Custom importer handler, more details here: https://github.com/sass/node-sass#importer--v200---experimental
Expand Down
20 changes: 17 additions & 3 deletions dist/src/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions dist/src/main/getUnusedClasses.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/main/getUnusedClasses.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/simpleAngularApp/.ngx-unused-css.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"path": "src/app",
"globalStyles": "src/styles.scss",
"ignore": [
".mat-",
"ng-star",
{
"file": "app.component.scss",
Expand Down
Loading

0 comments on commit bfc1ddb

Please sign in to comment.