vite.config.js (40 lines of code) (raw):

import { fileURLToPath, URL } from "node:url"; import { defineConfig } from "vite"; import { resolve } from "path"; import vue2 from "@vitejs/plugin-vue2"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue2()], build: { rollupOptions: { input: { main: resolve(__dirname, "index.html"), notFound: resolve(__dirname, "404.html"), }, onwarn(warning, warn) { // Ignore known issues from third-party code. const ignoreMap = { INVALID_ANNOTATION: ["bootstrap-vue"], }; const ignoredKeywords = ignoreMap[warning.code] || []; if ( !ignoredKeywords.some((keyword) => warning.message.includes(keyword)) ) { warn(warning); } }, }, }, resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, css: { preprocessorOptions: { scss: { quietDeps: true, api: 'modern' }, }, }, publicDir: "static", });