vite: don't strip comments from index.html, restore server-generated-meta

This commit is contained in:
Alex Gleason 2023-09-15 22:38:29 -05:00
parent 36b41e06e4
commit 49f8b1e55e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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