From d4c69f2723b38e67302b5bdf857d00fb82d06855 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 30 Apr 2022 16:59:00 +0200 Subject: [PATCH] Svelte confiug update --- jsconfig.json | 1 + svelte.config.js | 3 +++ tailwind.config.cjs | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index 3757b0e..fe1b5b6 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,4 +1,5 @@ { + "extends": "./.svelte-kit/tsconfig.json", "compilerOptions": { "baseUrl": ".", "paths": { diff --git a/svelte.config.js b/svelte.config.js index 7680239..1d3bb9b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,6 +6,9 @@ const config = { kit: { // hydrate the
element in src/app.html adapter: staticAdapter(), + prerender: { + default: true + }, files: { assets: 'static' }, diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 4c7fdd0..688f368 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,7 +1,6 @@ const config = { mode: 'jit', darkMode: 'media', - purge: ['./src/**/*.{html,js,svelte,ts}'], theme: { extend: {} },