mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 00:26:20 +08:00

* chore: up vue 3.4.13 antdv 4.1.0 * fix: stylelint * chore: update deps * feat: vite-html * fix: eslint * fix: type check --------- Co-authored-by: invalid w <wangjuesix@gmail.com>
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
/**
|
|
* Plugin to minimize and use ejs template syntax in index.html.
|
|
* https://github.com/anncwb/vite-plugin-html
|
|
*/
|
|
import type { PluginOption } from 'vite';
|
|
import { createHtmlPlugin } from 'vite-plugin-html';
|
|
|
|
export function configHtmlPlugin({ isBuild }: { isBuild: boolean }) {
|
|
const htmlPlugin: PluginOption[] = createHtmlPlugin({
|
|
minify: isBuild,
|
|
});
|
|
return htmlPlugin;
|
|
}
|