作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在构建一个 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
最佳答案
来自我的 discussion with Paul Miller , 这已在 1.7.0 pre 中修复,并将很快发布
关于brunch - 如何防止在早午餐 watch 上缓存 -s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16455638/
我是 Android 编程新手。我正在做这本书上的这个项目。我编写了一个类来返回名称和地址,然后为其编写了 OnClickListener,但当我单击“保存”按钮时它似乎不起作用。这是我的两个 Jav
我是一名优秀的程序员,十分优秀!