gpt4 book ai didi

brunch - 如何防止在早午餐 watch 上缓存 -s

转载 作者:行者123 更新时间:2023-12-04 21:44:42 27 4
gpt4 key购买 nike

我正在构建一个 ember 应用程序,发现我经常需要重新启动 brunch watch -s命令,更新我的应用程序。虽然早午餐会在每次更改时重新编译,但只有在我重新启动命令时更改才会生效。

难道我做错了什么?有没有办法解决这个问题?

注意:浏览器缓存关闭

更新 :我想出了如何调试早午餐 ;) 我发现的是以下内容:

 brunch:common Writing file 'public/javascripts/app.js' +14s
29 May 20:47:46 - info: compiled in 73ms
brunch:watch File 'app/templates/contact.hbs' received event 'change' +3s
brunch:file-list Compiled file 'app/templates/contact.hbs' +3s
brunch:generated-file Joining files 'app/app.js, app/controllers/contact.js, app/initialize.js, app/models/category.js, app/models/marker.js, app/models/stock.js, app/routes/application.js, app/routes/category/index.js, app/routes/contact.js, app/templates/about.hbs, app/templates/application.hbs, app/templates/blog.hbs, app/templates/categories.hbs, app/templates/category.hbs, app/templates/category/index.hbs, app/templates/contact.hbs, app/templates/contactEntry.hbs, app/templates/index.hbs, app/templates/new.hbs, app/templates/specials.hbs, app/views/contact.js, app/views/contactEntry.js' to 'public/javascripts/app.js' +3s
brunch:common Writing file 'public/javascripts/app.js' +3s
29 May 20:47:50 - info: compiled in 73ms
brunch:watch File 'app/templates/contact.hbs' received event 'unlink' +6s
29 May 20:47:57 - info: compiled in 67ms
brunch:watch File 'app/templates/contact.hbs' received event 'add' +99ms
brunch:source-file Initializing fs_utils.SourceFile: {"path":"app/templates/contact.hbs","isHelper":false,"isVendor":false} +10s
brunch:file-list Compiled file 'app/templates/contact.hbs' +6s
brunch:generated-file Joining files 'app/app.js, app/controllers/contact.js, app/initialize.js, app/models/category.js, app/models/marker.js, app/models/stock.js, app/routes/application.js, app/routes/category/index.js, app/routes/contact.js, app/templates/about.hbs, app/templates/application.hbs, app/templates/blog.hbs, app/templates/categories.hbs, app/templates/category.hbs, app/templates/category/index.hbs, app/templates/contact.hbs, app/templates/contactEntry.hbs, app/templates/index.hbs, app/templates/new.hbs, app/templates/specials.hbs, app/views/contact.js, app/views/contactEntry.js' to 'public/javascripts/app.js' +6s
brunch:common Writing file 'public/javascripts/app.js' +6s

请注意有时它会收到 unlink 事件,但不会重建文件。我通过仅对 contact.hbs 文件进行小的更改来对此进行了测试。为什么服务器有时会重建有时不会?

最佳答案

来自我的 discussion with Paul Miller , 这已在 1.7.0 pre 中修复,并将很快发布

关于brunch - 如何防止在早午餐 watch 上缓存 -s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16455638/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com