From c7ed47228a81d03a3ab3cbbf14c532aece5dbb70 Mon Sep 17 00:00:00 2001 From: Mihail Anton Date: Fri, 28 Oct 2022 18:06:09 +0200 Subject: [PATCH] fix: disable vite modulePreload https://github.com/vitejs/vite/issues/5532 --- frontend/vite.config.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index adad8b7e4..2ef8ad712 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -6,11 +6,12 @@ import { defineConfig } from 'vite'; export default defineConfig({ build: { - raw: { - extenstions : ['html', 'txt'], - glob: ['**.html'] // or glob - } -}, + raw: { + extensions : ['html', 'txt'], + glob: ['**.html'], // or glob + }, + modulePreload: false, + }, css: { preprocessorOptions: { scss: { @@ -19,7 +20,7 @@ export default defineConfig({ @import "./node_modules/bulma/bulma.sass"; @import "./node_modules/bulma-timeline/dist/css/bulma-timeline.sass"; `, - } + }, }, }, resolve: {