vite: don't strip comments from index.html, restore server-generated-meta
This commit is contained in:
@ -33,6 +33,10 @@ export default defineConfig({
|
|||||||
compileTime(),
|
compileTime(),
|
||||||
createHtmlPlugin({
|
createHtmlPlugin({
|
||||||
template: 'index.html',
|
template: 'index.html',
|
||||||
|
minify: {
|
||||||
|
collapseWhitespace: true,
|
||||||
|
removeComments: false,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
react({
|
react({
|
||||||
// Use React plugin in all *.jsx and *.tsx files
|
// Use React plugin in all *.jsx and *.tsx files
|
||||||
|
|||||||
Reference in New Issue
Block a user