Fix postcss-purgecss dependency

This commit is contained in:
eikek 2021-10-24 14:45:03 +02:00
parent 208f7e6445
commit c2d54cebb5
4 changed files with 487 additions and 134 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,15 +2,17 @@
"name": "docspell-css",
"version": "1.0.0",
"private": true,
"dependencies": {
"dependencies": {},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@tailwindcss/forms": "^0.3.4",
"autoprefixer": "^10.3.7",
"cssnano": "^5.0.8",
"flag-icon-css": "^3.5.0",
"postcss": "^8.3.11",
"postcss-cli": "^9.0.1",
"postcss-import": "^14.0.2",
"autoprefixer": "^10.3.7",
"cssnano": "^5.0.8",
"postcss": "^8.3.11",
"postcss-purgecss": "^2.0.3",
"tailwindcss": "^2.2.17"
}
}

View File

@ -13,7 +13,7 @@ const prodPlugins =
require('postcss-import'),
tailwindcss("./tailwind.config.js"),
require("autoprefixer"),
require("@fullhuman/postcss-purgecss")({
require("postcss-purgecss")({
content: [
"./src/main/elm/**/*.elm",
"./src/main/styles/keep.txt",

View File

@ -55,7 +55,7 @@ object StylesPlugin extends AutoPlugin {
val files = postCss(npx, inDir, outDir, wd, mode, logger) ++
copyWebfonts(wd, outDir, logger) ++
copyFlags(wd, outDir, logger)
logger.info("Styles built")
logger.info(s"Styles built at $outDir")
files
},
stylesInstall := {
@ -63,7 +63,6 @@ object StylesPlugin extends AutoPlugin {
val npm = stylesNpmCommand.value
val wd = (LocalRootProject / baseDirectory).value
npmInstall(npm, wd, logger)
}
)