build(deps): 添加多种插件:element-plus、iconify、windicss

This commit is contained in:
Soybean
2021-05-28 02:22:49 +08:00
parent d8d3cc237e
commit afd4d04110
24 changed files with 844 additions and 27 deletions

12
build/plugins/html.ts Normal file
View File

@@ -0,0 +1,12 @@
import { minifyHtml, injectHtml } from 'vite-plugin-html'; // html插件(使用变量、压缩)
import viteEnv from '../env';
export default [
minifyHtml(),
injectHtml({
injectData: {
title: viteEnv.VITE_APP_TITLE,
appName: viteEnv.VITE_APP_TITLE_Label
}
})
];