fix: 图片开发class改为异步

This commit is contained in:
ningmengchongshui 2024-06-16 00:20:45 +08:00
parent 610a84c6ea
commit 574d64205d
3 changed files with 4 additions and 4 deletions

View File

@ -68,5 +68,5 @@ app.use(router.routes())
// listen 8000 // listen 8000
app.listen(Port, () => { app.listen(Port, () => {
console.log('Server is running on port ' + Port) console.log('Server is running on port ' + Port)
console.log('自行调整BOT浏览器尺寸 753 X 1180') console.log('自行调整默认浏览器尺寸 800 X 1280 100%')
}) })

View File

@ -1,7 +1,7 @@
import { execSync } from 'child_process' import { exec } from 'child_process'
/** /**
* ********** * **********
* css文件 * css文件
* ********** * **********
*/ */
execSync('tailwindcss -i ./src/input.css -o ./public/output.css --watch') exec('tailwindcss -i ./src/input.css -o ./public/output.css --watch')

View File

@ -7,7 +7,7 @@ import path from 'path'
* @returns * @returns
*/ */
export function createRequire( export function createRequire(
basePath, basePath: string,
customExtensions = ['.css', '.png', '.jpg', '.less', '.scss'] customExtensions = ['.css', '.png', '.jpg', '.less', '.scss']
) { ) {
const require = cRequire(basePath) const require = cRequire(basePath)