From f1f2982d0bcbd15d9b2aa3e895da3b1057c5ca01 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Tue, 30 Jan 2024 01:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/cool/index.ts | 4 ++-- vite.config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/cool/index.ts b/build/cool/index.ts index 8c41ac1..b7910ba 100644 --- a/build/cool/index.ts +++ b/build/cool/index.ts @@ -2,13 +2,13 @@ import { base } from "./base"; import { virtual } from "./virtual"; import { demo } from "./demo"; -export function cool() { +export function cool(test?: boolean) { return [ // 基础 base(), // 虚拟模块 virtual(), // demo 官方示例,代码片段 - demo(true) + demo(test) ]; } diff --git a/vite.config.ts b/vite.config.ts index d528e8c..357ab0f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,7 +22,7 @@ export default ({ mode }: ConfigEnv): UserConfig => { vue(), compression(), vueJsx(), - cool(), + cool(false), // 是否测试模式 visualizer({ open: false, gzipSize: true,