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(/