Inline PostCSS config

This commit is contained in:
Niek van der Maas 2023-03-03 16:46:05 +01:00
parent e91197744f
commit 82aae80e67
2 changed files with 14 additions and 12 deletions

View File

@ -1,9 +0,0 @@
const purgecss = require('@fullhuman/postcss-purgecss')
module.exports = {
plugins: [
purgecss({
content: ['./**/*.html', './**/*.svelte'],
})
]
}

View File

@ -1,7 +1,18 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import purgecss from "@fullhuman/postcss-purgecss";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
})
css: {
postcss: {
plugins: [
purgecss({
content: ["./**/*.html", "./**/*.svelte"],
}),
],
},
},
});