31 Star 228 Fork 113

帝莎编程 / tov-template

 / 详情

run build命令不会自动停止

已完成
创建于  
2022-02-10 16:15

如题,npm run build或者pnpm run build命令后,命令不会完成,会一直悬挂。

评论 (4)

清河木子 创建了任务

unplugin-auto-import 插件问题,目前在进行中。可见 👉 tov-template/issues/I4T3U6

markthree 任务状态待办的 修改为进行中
markthree 负责人设置为markthree

问题应该是对于import { watch } from 'chokidar'的使用问题,没有对watch进行close导致的。
共用有两处使用了watch

// tov.ts
import './shared/watcher'
// vite-auto-import-resolvers模块的dir.ts
const watcher = watch(path, { depth: 1 })

感谢靓仔的反馈,我之前在排查的时候忘记把 element-plusElementPlusResolver 排除掉,所以以为是unplugin-auto-import 的问题,我会为该问题写一个vite插件强制在 build 完成后退出悬着的进程。

靓仔你好,该问题已处理,欢迎重新 pull 或者下载该模板。具体变动可见 👉 fix: 处理打包进程悬挂

markthree 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
10249119 markthree 1640753343
TypeScript
1
https://gitee.com/dishait/tov-template.git
git@gitee.com:dishait/tov-template.git
dishait
tov-template
tov-template

搜索帮助

53164aa7 5694891 3bd8fe86 5694891