Skip to content

Commit b4e10e5

Browse files
authored
Merge pull request #146 from tannerdolby/144-minify-css
2 parents d1def38 + faf9b12 commit b4e10e5

7 files changed

Lines changed: 294 additions & 174 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dist
1111
cypress/videos
1212
cypress/fixtures
1313
cypress/screenshots
14+
*.tgz

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ In the below CDN links:
8484
- Replace `:version` with a version [listed here](https://www.npmjs.com/package/checka11y-css?activeTab=versions) (latest version is always recommended). If you always want to get the latest stylesheet, remove `@:version` completely (Not recommended).
8585
- Replace `:stylesheet` with one of the listed stylesheets below:
8686
- `checka11y.css` <small>(errors & warnings, recommended)</small>
87+
- `checka11y.min.css` <small>(minified errors & warnings, recommended)</small>
8788
- `checka11y-errors.css` <small>(errors **only**)</small>
89+
- `checka11y-errors.min.css` <small>(minified errors **only**)</small>
8890
- `checka11y-warnings.css` <small>(errors **only**)</small>
91+
- `checka11y-warnings.min.css` <small>(minified errors **only**)</small>
8992

9093
```html
9194
<!-- HTML -->
@@ -123,6 +126,8 @@ In the below imports, replace `:file` with one of the options below:
123126
- `checka11y.css` <small>(.css file)</small>
124127
- `src/errors/checka11y-errors` <small>(errors **only**)</small>
125128
- `src/warnings/checka11y-warnings` <small>(warnings **only**)</small>
129+
130+
Use as a Sass module <small>(recommended)</small>:
126131
```scss
127132
/* Webpack */
128133
@use '~checka11y-css/:file' as *;
@@ -131,6 +136,15 @@ In the below imports, replace `:file` with one of the options below:
131136
@use 'path/to/node_modules/checka11y-css/:file' as *;
132137
```
133138

139+
Import generally <small>(not recommended, <a href="https://sass-lang.com/documentation/at-rules/import">read why</a>)</small>:
140+
```scss
141+
/* Webpack */
142+
@import '~checka11y-css/:file';
143+
144+
/* Non-webpack */
145+
@import 'path/to/node_modules/checka11y-css/:file';
146+
```
147+
134148
### Using Angular?
135149

136150
👉 [Go to ngx-checka11y](https://github.com/AlaaEl-DinAhmed/ngx-checka11y)

checka11y-errors.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checka11y-warnings.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checka11y.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)