Skip to content

Commit

Permalink
minify css
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmon committed Sep 28, 2022
1 parent b37cd6e commit 4bee998
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2,186 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"abrusco": "^0.15.0"
},
"scripts": {
"w": "npm run build:css -- --watch",
"build:css": "abrusco src/css -o static/master.css",
"build": "npm run build:css"
"dev": "abrusco src/css -o static/master.css --watch",
"build": "abrusco src/css -o static/master.css --minify"
},
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions purgecss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
content: [
'site/**/*.twig',
'site/plugins/**/*.php',
],
css: ['static/master.css'],
output: 'static/master.css',
defaultExtractor: (x) => x.match(/[\w-/:]+(?<!:)/g) || [],
safelist: ['-d', '-view'],
}
Loading

0 comments on commit 4bee998

Please sign in to comment.