Skip to content

Commit

Permalink
feat: Minify CSS before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-engel committed Jun 23, 2019
1 parent bac33a7 commit 1ca7e6e
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
Thumbs.db

*.orig
*.min.css

node_modules/
181 changes: 181 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Global CSS rules to improve accessibility in your site and make your life easier",
"main": "index.js",
"scripts": {
"prepublishOnly": "minify combo.css > combo.min.css;minify a11y.css > a11y.min.css;minify reset.css > reset.min.css",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand All @@ -22,5 +23,8 @@
"bugs": {
"url": "https://github.com/mike-engel/a11y-css-reset/issues"
},
"homepage": "https://github.com/mike-engel/a11y-css-reset#readme"
"homepage": "https://github.com/mike-engel/a11y-css-reset#readme",
"devDependencies": {
"minify": "^4.1.2"
}
}

0 comments on commit 1ca7e6e

Please sign in to comment.