From 574d64205d4f87063921c04a959d1110dadf28a7 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Sun, 16 Jun 2024 00:20:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E7=89=87=E5=BC=80=E5=8F=91clas?= =?UTF-8?q?s=E6=94=B9=E4=B8=BA=E5=BC=82=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image/main.ts | 2 +- image/tailwindcss.ts | 4 ++-- src/utils/module.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/image/main.ts b/image/main.ts index 7a7b3c4..7863c49 100644 --- a/image/main.ts +++ b/image/main.ts @@ -68,5 +68,5 @@ app.use(router.routes()) // listen 8000 app.listen(Port, () => { console.log('Server is running on port ' + Port) - console.log('自行调整BOT浏览器尺寸 753 X 1180') + console.log('自行调整默认浏览器尺寸 800 X 1280 100%') }) diff --git a/image/tailwindcss.ts b/image/tailwindcss.ts index 8a2e27f..eb00dc3 100644 --- a/image/tailwindcss.ts +++ b/image/tailwindcss.ts @@ -1,7 +1,7 @@ -import { execSync } from 'child_process' +import { exec } from 'child_process' /** * ********** * 生成css文件 * ********** */ -execSync('tailwindcss -i ./src/input.css -o ./public/output.css --watch') +exec('tailwindcss -i ./src/input.css -o ./public/output.css --watch') diff --git a/src/utils/module.ts b/src/utils/module.ts index a55e0d0..d818c7c 100644 --- a/src/utils/module.ts +++ b/src/utils/module.ts @@ -7,7 +7,7 @@ import path from 'path' * @returns */ export function createRequire( - basePath, + basePath: string, customExtensions = ['.css', '.png', '.jpg', '.less', '.scss'] ) { const require = cRequire(basePath)