Skip to content

Commit

Permalink
chore(config): 🤖 remove pursecss
Browse files Browse the repository at this point in the history
✅ Closes: #90
  • Loading branch information
brklntmhwk committed Nov 12, 2024
1 parent 811815e commit e371714
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import solidJs from '@astrojs/solid-js';
import tailwind from '@astrojs/tailwind';
import purgecss from 'astro-purgecss';
// import purgecss from 'astro-purgecss';
import { defineConfig, passthroughImageService } from 'astro/config';
// import browserslist from 'browserslist';
import { h } from 'hastscript';
Expand Down Expand Up @@ -62,17 +62,17 @@ export default defineConfig({
sitemap(),
iconNameTypes(),
pagefind(),
purgecss({
fontFace: true,
extractors: [
{
// Example using a taiwindcss compatible class extractor
extractor: (content) =>
content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
extensions: ['astro', 'html']
}
]
}),
// purgecss({
// fontFace: true,
// extractors: [
// {
// // Example using a taiwindcss compatible class extractor
// extractor: (content) =>
// content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
// extensions: ['astro', 'html']
// }
// ]
// }),
],
prefetch: {
defaultStrategy: 'viewport',
Expand Down

0 comments on commit e371714

Please sign in to comment.