mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:08:02 +08:00
first commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user