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 d9142d9
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 68 deletions.
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
11 changes: 11 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const purgecss = require('@fullhuman/postcss-purgecss')

module.exports = {
plugins: [
purgecss({
content: ["./index.html", "src/**/*.js"], // Be careful not to include the `node_modules` folder in your globs.
css: ["./styles/style.css"],
safelist: []
}),
]
}
5 changes: 0 additions & 5 deletions purgecss.config.js

This file was deleted.

0 comments on commit d9142d9

Please sign in to comment.