Skip to content

Commit d9142d9

Browse files
committed
try postcss-purgecss
1 parent e779a15 commit d9142d9

File tree

4 files changed

+104
-68
lines changed

4 files changed

+104
-68
lines changed

package-lock.json

Lines changed: 92 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"@babel/core": "7.11.4",
3333
"@babel/plugin-proposal-optional-chaining": "7.11.0",
3434
"@babel/plugin-syntax-dynamic-import": "7.8.3",
35+
"@fullhuman/postcss-purgecss": "^3.0.0",
3536
"babel-preset-solid": "0.19.0",
3637
"bootstrap": "^4.5.2",
3738
"parcel": "^2.0.0-beta.1",
38-
"parcel-plugin-purgecss": "^3.0.0",
3939
"serve": "^11.3.2"
4040
},
4141
"targets": {

postcss.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const purgecss = require('@fullhuman/postcss-purgecss')
2+
3+
module.exports = {
4+
plugins: [
5+
purgecss({
6+
content: ["./index.html", "src/**/*.js"], // Be careful not to include the `node_modules` folder in your globs.
7+
css: ["./styles/style.css"],
8+
safelist: []
9+
}),
10+
]
11+
}

purgecss.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)