You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
473 B

import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
server: {
watch: {
usePolling: true,
interval: 100,
},
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
syllabus: resolve(__dirname, "syllabus.html"),
},
},
},
});