Load dsv plugin
This commit is contained in:
parent
818dc492c6
commit
c15517a3fd
|
@ -1,14 +1,17 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import dsv from '@rollup/plugin-dsv'
|
||||
|
||||
import purgecss from '@fullhuman/postcss-purgecss'
|
||||
|
||||
const plugins = [svelte(), dsv()]
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ command, mode, ssrBuild }) => {
|
||||
// Only run PurgeCSS in production builds
|
||||
if (command === 'build') {
|
||||
return {
|
||||
plugins: [svelte()],
|
||||
plugins,
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [
|
||||
|
@ -22,7 +25,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
|
|||
}
|
||||
} else {
|
||||
return {
|
||||
plugins: [svelte()]
|
||||
plugins
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue