mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Fix postcss-purgecss dependency
This commit is contained in:
parent
208f7e6445
commit
c2d54cebb5
606
modules/webapp/package-lock.json
generated
606
modules/webapp/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -2,15 +2,17 @@
|
|||||||
"name": "docspell-css",
|
"name": "docspell-css",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||||
"@tailwindcss/forms": "^0.3.4",
|
"@tailwindcss/forms": "^0.3.4",
|
||||||
"autoprefixer": "^10.3.7",
|
|
||||||
"cssnano": "^5.0.8",
|
|
||||||
"flag-icon-css": "^3.5.0",
|
"flag-icon-css": "^3.5.0",
|
||||||
"postcss": "^8.3.11",
|
|
||||||
"postcss-cli": "^9.0.1",
|
"postcss-cli": "^9.0.1",
|
||||||
"postcss-import": "^14.0.2",
|
"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"
|
"tailwindcss": "^2.2.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ const prodPlugins =
|
|||||||
require('postcss-import'),
|
require('postcss-import'),
|
||||||
tailwindcss("./tailwind.config.js"),
|
tailwindcss("./tailwind.config.js"),
|
||||||
require("autoprefixer"),
|
require("autoprefixer"),
|
||||||
require("@fullhuman/postcss-purgecss")({
|
require("postcss-purgecss")({
|
||||||
content: [
|
content: [
|
||||||
"./src/main/elm/**/*.elm",
|
"./src/main/elm/**/*.elm",
|
||||||
"./src/main/styles/keep.txt",
|
"./src/main/styles/keep.txt",
|
||||||
|
@ -55,7 +55,7 @@ object StylesPlugin extends AutoPlugin {
|
|||||||
val files = postCss(npx, inDir, outDir, wd, mode, logger) ++
|
val files = postCss(npx, inDir, outDir, wd, mode, logger) ++
|
||||||
copyWebfonts(wd, outDir, logger) ++
|
copyWebfonts(wd, outDir, logger) ++
|
||||||
copyFlags(wd, outDir, logger)
|
copyFlags(wd, outDir, logger)
|
||||||
logger.info("Styles built")
|
logger.info(s"Styles built at $outDir")
|
||||||
files
|
files
|
||||||
},
|
},
|
||||||
stylesInstall := {
|
stylesInstall := {
|
||||||
@ -63,7 +63,6 @@ object StylesPlugin extends AutoPlugin {
|
|||||||
val npm = stylesNpmCommand.value
|
val npm = stylesNpmCommand.value
|
||||||
val wd = (LocalRootProject / baseDirectory).value
|
val wd = (LocalRootProject / baseDirectory).value
|
||||||
npmInstall(npm, wd, logger)
|
npmInstall(npm, wd, logger)
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user