Skip to content

Commit

Permalink
Merge pull request #146 from tannerdolby/144-minify-css
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdomleo7 authored Nov 9, 2021
2 parents d1def38 + faf9b12 commit b4e10e5
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 174 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ dist
cypress/videos
cypress/fixtures
cypress/screenshots
*.tgz
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ In the below CDN links:
- 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).
- Replace `:stylesheet` with one of the listed stylesheets below:
- `checka11y.css` <small>(errors & warnings, recommended)</small>
- `checka11y.min.css` <small>(minified errors & warnings, recommended)</small>
- `checka11y-errors.css` <small>(errors **only**)</small>
- `checka11y-errors.min.css` <small>(minified errors **only**)</small>
- `checka11y-warnings.css` <small>(errors **only**)</small>
- `checka11y-warnings.min.css` <small>(minified errors **only**)</small>

```html
<!-- HTML -->
Expand Down Expand Up @@ -123,6 +126,8 @@ In the below imports, replace `:file` with one of the options below:
- `checka11y.css` <small>(.css file)</small>
- `src/errors/checka11y-errors` <small>(errors **only**)</small>
- `src/warnings/checka11y-warnings` <small>(warnings **only**)</small>

Use as a Sass module <small>(recommended)</small>:
```scss
/* Webpack */
@use '~checka11y-css/:file' as *;
Expand All @@ -131,6 +136,15 @@ In the below imports, replace `:file` with one of the options below:
@use 'path/to/node_modules/checka11y-css/:file' as *;
```

Import generally <small>(not recommended, <a href="https://sass-lang.com/documentation/at-rules/import">read why</a>)</small>:
```scss
/* Webpack */
@import '~checka11y-css/:file';

/* Non-webpack */
@import 'path/to/node_modules/checka11y-css/:file';
```

### Using Angular?

👉 [Go to ngx-checka11y](https://github.com/AlaaEl-DinAhmed/ngx-checka11y)
Expand Down
1 change: 1 addition & 0 deletions checka11y-errors.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions checka11y-warnings.min.css

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

1 change: 1 addition & 0 deletions checka11y.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit b4e10e5

Please sign in to comment.