我无法更新我的Sencha Touch网络应用程序而无需清除浏览器缓存以使新版本正常工作。如果我没有手动清除缓存,我会收到此错误:
Error evaluating http://localhost/alpha1/app.js with message: SyntaxError: Unexpected token ,
一旦我清理了te缓存,它就能完美运行。问题可能来自哪里?
答案 0 :(得分:2)
在app.json中将app.js的update
属性设置为full
:
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "full"
}