mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix(dev): unexpected purgecss result
use tailwind's build-in purge instead.
This commit is contained in:
@@ -3,18 +3,5 @@ module.exports = (ctx) => ({
|
||||
require("autoprefixer"),
|
||||
require("tailwindcss")("tailwind.config.js"),
|
||||
ctx.env === "production" ? require("cssnano")({ preset: "default" }) : null,
|
||||
ctx.env === "production"
|
||||
? require("@fullhuman/postcss-purgecss")({
|
||||
content: [
|
||||
'./src/**/*.js',
|
||||
'./src/**/*.cljs',
|
||||
'./resources/**/*.html',
|
||||
],
|
||||
|
||||
// https://tailwindcss.com/docs/controlling-file-size#understanding-the-regex
|
||||
// without this we miss keeping eg. `w-1/2`
|
||||
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
|
||||
})
|
||||
: null,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user