From e803010fe28b849220f0dd5b35e16abb4584667e Mon Sep 17 00:00:00 2001 From: memdmp Date: Mon, 24 Feb 2025 06:06:42 +0100 Subject: feat: at the expense of us carrying the entire ts base type defs in the repo, and hating the code, the ts shit all fits in <5MB .js files --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 511e09d..9b3f808 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,13 +5,13 @@ import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit(), tailwindcss()], build: { - sourcemap: 'inline', + sourcemap: process.env.NODE_ENV !== 'production' ? 'inline' : true, assetsInlineLimit: 8192, }, dev: { sourcemap: { - css: true, - js: true, + css: process.env.NODE_ENV !== 'production', + js: process.env.NODE_ENV !== 'production', }, }, }); -- cgit v1.2.3