Skip to content

Commit 4bcd4d8

Browse files
committed
Update postcss-purgecss
1 parent 0564e49 commit 4bcd4d8

3 files changed

Lines changed: 48 additions & 62 deletions

File tree

app/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@babel/core": "^7.26.10",
1111
"@babel/preset-env": "^7.26.9",
12-
"@fullhuman/postcss-purgecss": "^6.0.0",
12+
"@fullhuman/postcss-purgecss": "^7.0.2",
1313
"@vue/compiler-sfc": "^3.5.13",
1414
"@vueuse/core": "^13.1.0",
1515
"@vueuse/head": "^2.0.0",
@@ -69,12 +69,5 @@
6969
},
7070
"engines": {
7171
"node": ">=23"
72-
},
73-
"pnpm": {
74-
"updateConfig": {
75-
"ignoreDependencies": [
76-
"@fullhuman/postcss-purgecss"
77-
]
78-
}
7972
}
8073
}

app/pnpm-lock.yaml

Lines changed: 44 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/postcss.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
const purgecss = require('@fullhuman/postcss-purgecss')
1+
const purgeImport = require('@fullhuman/postcss-purgecss')
2+
const purgeCSSPlugin = purgeImport.purgeCSSPlugin || purgeImport.default || purgeImport
23
const autoprefixer = require('autoprefixer')
34

45
module.exports = {
56
plugins: [
67
autoprefixer,
7-
purgecss({
8+
purgeCSSPlugin({
89
content: ['**/*.js', '**/*.html', '**/*.vue'],
910
skippedContentGlobs: ['node_modules/**', 'tests/**'],
1011
variables: true,

0 commit comments

Comments
 (0)