fix: 图片开发class改为异步
This commit is contained in:
parent
610a84c6ea
commit
574d64205d
|
@ -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%')
|
||||||
})
|
})
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue