🚚 move to tailwind

ref #136
This commit is contained in:
2021-04-15 19:22:57 +02:00
parent 5c02028841
commit 07ac041d69
6 changed files with 17 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
import svelte from '@sveltejs/vite-plugin-svelte';
import windiCSS from 'vite-plugin-windicss';
import { minify } from 'html-minifier';
import { defineConfig } from 'vite';
//
@@ -24,17 +23,6 @@ export default defineConfig(({ command, mode }) => {
minify: isProduction
},
plugins: [
windiCSS({
//@ts-ignore
verbose: true,
silent: false,
debug: true,
config: 'tailwind.config.js', // tailwind config file path (optional)
compile: false, // false: interpretation mode; true: compilation mode
prefix: 'windi-', // set compilation mode style prefix
globalPreflight: true, // set preflight style is global or scoped
globalUtility: true // set utility style is global or scoped
}),
svelte({
//@ts-ignore
hot: !isProduction,