diff --git a/vite.config.ts b/vite.config.ts index 4f50e91369..51f8706f10 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -33,6 +33,10 @@ export default defineConfig({ compileTime(), createHtmlPlugin({ template: 'index.html', + minify: { + collapseWhitespace: true, + removeComments: false, + }, }), react({ // Use React plugin in all *.jsx and *.tsx files