first commit

This commit is contained in:
hooray
2021-08-27 10:32:21 +08:00
commit fef4cd36fb
234 changed files with 41663 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import htmlPlugin from 'vite-plugin-html'
export default function createHtml(env, isBuild) {
const { VITE_APP_TITLE, VITE_APP_DEBUG_TOOL, VITE_APP_MODE } = env
const html = htmlPlugin({
inject: {
injectData: {
title: VITE_APP_TITLE,
debugTool: VITE_APP_DEBUG_TOOL,
appMode: VITE_APP_MODE
}
},
minify: isBuild
})
return html
}