NativeScript / NativeScript/nativescript-cli
[LiveSync] allow for custom files (extensions) to be handled by liveSync
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
In my app i need to allow fast live sync for files ".mss"
When those files are changed (in assets), only a reload of the map style is needed.
I already handle that through global.__onLiveSync
But now it does not work anymore. It comes from that line:
https://github.com/NativeScript/nativescript-cli/blob/5069f29fcb0a1dc9abbf3eb5523b298141bb3b11/lib/services/webpack/webpack-compiler-service.ts#L59
I was working a few releases before. If i
Here only files with 'hot-update' will allow live sync. How can i make it work?
Actually how does it work today for images live sync. I can see that it is supposed to be handled seeing fastLivesyncFileExtensions:
https://github.com/NativeScript/nativescript-cli/blob/9320a1de8462e8451f08a4798d35912573f78ac3/lib/services/android-project-service.ts#L85
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 lib/services/webpack/webpack-compiler-service.ts 第 59 行附近的内容,并将其与 lib/services/android-project-service.ts 第 85 行附近的内容进行比较,尤其关注 fastLivesyncFileExtensions。跟踪图像更改如何到达 liveSync,以及 global.__onLiveSync 如何参与其中。完成标准是:自定义 .mss asset 的更改会触发所需的 liveSync 行为,同时不影响现有的图像处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript, webpack
- 领域
- cli, mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100