Inline PostCSS config
This commit is contained in:
parent
e91197744f
commit
82aae80e67
|
@ -1,9 +0,0 @@
|
|||
const purgecss = require('@fullhuman/postcss-purgecss')
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
purgecss({
|
||||
content: ['./**/*.html', './**/*.svelte'],
|
||||
})
|
||||
]
|
||||
}
|
|
@ -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"],
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue