Skip to content

Commit

Permalink
try postcss-purgecss
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 22, 2020
1 parent e779a15 commit 9320af5
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 68 deletions.
9 changes: 9 additions & 0 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": {
"@fullhuman/postcss-purgecss": {
content: ["./index.html", "src/**/*.js"], // Be careful not to include the `node_modules` folder in your globs.
css: ["./styles/style.css"],
safelist: []
}
}
}
154 changes: 92 additions & 62 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"@babel/core": "7.11.4",
"@babel/plugin-proposal-optional-chaining": "7.11.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@fullhuman/postcss-purgecss": "^3.0.0",
"babel-preset-solid": "0.19.0",
"bootstrap": "^4.5.2",
"parcel": "^2.0.0-beta.1",
"parcel-plugin-purgecss": "^3.0.0",
"serve": "^11.3.2"
},
"targets": {
Expand Down
5 changes: 0 additions & 5 deletions purgecss.config.js

This file was deleted.

0 comments on commit 9320af5

Please sign in to comment.