fix(config): vite:html warning (#3518)

This commit is contained in:
xachary 2024-01-08 15:57:06 +08:00 committed by GitHub
parent c2c9f4f556
commit 6978517a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ import { createHtmlPlugin } from 'vite-plugin-html';
export function configHtmlPlugin({ isBuild }: { isBuild: boolean }) {
const htmlPlugin: PluginOption[] = createHtmlPlugin({
minify: isBuild,
viteNext: true,
});
return htmlPlugin;
}