import preprocess from 'svelte-preprocess'; import { windi } from 'svelte-windicss-preprocess'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [windi(), preprocess({ postcss: true })], kit: { // hydrate the
element in src/app.html target: '#svelte' } }; export default config; // Workaround until SvelteKit uses Vite 2.3.8 (and it's confirmed to fix the Tailwind JIT problem) const mode = process.env.NODE_ENV; const dev = mode === 'development'; process.env.TAILWIND_MODE = dev ? 'watch' : 'build';