Adding source maps to production build.

This commit is contained in:
David Négrier 2022-03-14 13:55:30 +01:00
parent 352f144e97
commit 52b5027702

View File

@ -2,7 +2,7 @@ import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte"; import { svelte } from "@sveltejs/vite-plugin-svelte";
import { envConfig } from "@geprog/vite-plugin-env-config"; import { envConfig } from "@geprog/vite-plugin-env-config";
import sveltePreprocess from "svelte-preprocess"; import sveltePreprocess from "svelte-preprocess";
import pluginRewriteAll from 'vite-plugin-rewrite-all'; import pluginRewriteAll from "vite-plugin-rewrite-all";
export default defineConfig({ export default defineConfig({
server: { server: {
@ -10,7 +10,10 @@ export default defineConfig({
hmr: { hmr: {
// workaround for development in docker // workaround for development in docker
clientPort: 80, clientPort: 80,
} },
},
build: {
sourcemap: true,
}, },
plugins: [ plugins: [
svelte({ svelte({