mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:48:39 +08:00
更新依赖,更新vite插件配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import htmlPlugin from 'vite-plugin-html'
|
||||
import { createHtmlPlugin } from 'vite-plugin-html'
|
||||
|
||||
const copyright_common_style = 'font-size: 14px; margin-bottom: 2px; padding: 6px 8px; color: #fff;'
|
||||
const copyright_main_style = `${copyright_common_style} background: #e24329;`
|
||||
@@ -6,9 +6,9 @@ const copyright_sub_style = `${copyright_common_style} background: #707070;`
|
||||
|
||||
export default function createHtml(env, isBuild) {
|
||||
const { VITE_APP_TITLE, VITE_APP_DEBUG_TOOL } = env
|
||||
const html = htmlPlugin({
|
||||
const html = createHtmlPlugin({
|
||||
inject: {
|
||||
injectData: {
|
||||
data: {
|
||||
title: VITE_APP_TITLE,
|
||||
debugTool: VITE_APP_DEBUG_TOOL,
|
||||
copyrightScript: `
|
||||
|
||||
Reference in New Issue
Block a user