This commit is contained in:
icssoa 2024-01-30 01:37:47 +08:00
parent 8381fe5e0b
commit f1f2982d0b
2 changed files with 3 additions and 3 deletions

View File

@ -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)
];
}

View File

@ -22,7 +22,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
vue(),
compression(),
vueJsx(),
cool(),
cool(false), // 是否测试模式
visualizer({
open: false,
gzipSize: true,