From 5eb299ea918bcc2f8e181a442e331fe52c1b1fa6 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Tue, 9 Jan 2024 10:02:40 +0800 Subject: [PATCH] =?UTF-8?q?build(vite):=20=E6=95=B4=E7=90=86vite=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index fa0feff..c0e9334 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,6 @@ import UniPages from '@uni-helper/vite-plugin-uni-pages' // @see https://github.com/uni-helper/vite-plugin-uni-platform // 需要与 @uni-helper/vite-plugin-uni-pages 插件一起使用 import UniPlatform from '@uni-helper/vite-plugin-uni-platform' -import dayjs from 'dayjs' import svgLoader from 'vite-svg-loader' import { visualizer } from 'rollup-plugin-visualizer' import ViteRestart from 'vite-plugin-restart' @@ -18,19 +17,6 @@ import vueSetupExtend from 'vite-plugin-vue-setup-extend' import UnoCSS from 'unocss/vite' import autoprefixer from 'autoprefixer' -/** 这个修改只对web生效,小程序没有index.html这个文件 */ -const htmlPlugin = (title: string) => { - console.log('---htmlPlugin---') - return { - name: 'html-transform', - transformIndexHtml(html) { - return html - .replace(/