Remove unused styles and prevent postcss from purging relevant ones

This commit is contained in:
Eike Kettner
2021-02-14 02:20:01 +01:00
parent f6e5bda2d8
commit 5461321e59
3 changed files with 34 additions and 28 deletions

View File

@@ -16,6 +16,7 @@ const prodPlugins =
require("@fullhuman/postcss-purgecss")({
content: [
"./modules/webapp/src/main/elm/**/*.elm",
"./modules/webapp/src/main/styles/keep.txt",
"./modules/restserver/src/main/templates/*.html"
],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/\.]+/g) || []