in vite.config.js [8:44]
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",
});