mirror-speedometer/resources/editors/vite.config.js
Julien Wajsberg 309437377e
Enable source maps in charts and editors (#391)
* Enable sourcemaps in editors

* Enable sourcemaps in charts
2024-03-04 12:34:43 -08:00

17 lines
536 B
JavaScript

import { resolve } from "path";
import { defineConfig } from "vite";
export default defineConfig({
base: "./", // Since this will be loaded from the project root
build: {
modulePreload: { polyfill: false },
minify: false,
sourcemap: true,
rollupOptions: {
input: {
codemirror: resolve(__dirname, "codemirror.html"),
main: resolve(__dirname, "index.html"),
tiptap: resolve(__dirname, "tiptap.html"),
},
},
},
});