astro-purgecss 2.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ export default defineConfig({
|
|
|
69
69
|
safelist: ['random', 'yep', 'button', /^nav-/],
|
|
70
70
|
blocklist: ['usedClass', /^nav-/],
|
|
71
71
|
content: [
|
|
72
|
-
process.cwd() + '/src/**/*.{astro,vue}'
|
|
73
|
-
]
|
|
72
|
+
process.cwd() + '/src/**/*.{astro,vue}' // Watching astro and vue sources (for SSR, read the note below)
|
|
73
|
+
]
|
|
74
74
|
})
|
|
75
75
|
]
|
|
76
76
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AstroIntegration } from 'astro';
|
|
2
|
-
import { RawContent, StringRegExpArray, UserDefinedSafelist } from 'purgecss';
|
|
2
|
+
import { type RawContent, type StringRegExpArray, type UserDefinedSafelist } from 'purgecss';
|
|
3
3
|
export type PurgeCSSOptions = {
|
|
4
4
|
fontFace?: boolean;
|
|
5
5
|
keyframes?: boolean;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-purgecss",
|
|
3
3
|
"description": "Remove unused CSS rules from your final Astro bundle",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "astro-build --src src/index.ts",
|
|
7
7
|
"postbuild": "npm run typecheck:emit",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"purgecss": "^5.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"astro": "^
|
|
40
|
+
"astro": "^3.0.0"
|
|
41
41
|
}
|
|
42
42
|
}
|