Skip to content

Commit 68004fe

Browse files
committed
try postcss-purgecss
1 parent e779a15 commit 68004fe

File tree

4 files changed

+102
-68
lines changed

4 files changed

+102
-68
lines changed

.postcssrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"plugins": {
3+
"@fullhuman/postcss-purgecss": {
4+
content: ["./index.html", "src/**/*.js"],
5+
css: ["./styles/style.css"],
6+
safelist: []
7+
}
8+
}
9+
}

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": {

purgecss.config.js

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

0 commit comments

Comments
 (0)