【问题标题】:atom-typescript updates the .ts file, but changes in html don't update upon saveatom-typescript 更新 .ts 文件,但 html 中的更改不会在保存时更新
【发布时间】:2015-07-17 19:40:48
【问题描述】:

我刚刚安装了 atom-typescript。我在 Windows 上。保存文件时会更新 .ts 文件中的更改。更改 html 文件并保存该文件时,刷新时更新不会出现在页面上。我错过了什么?我已阅读 atom-typescript 文档,但对此一无所知。

我的 tsconfig.json 文件是 -

{
 "compilerOptions": {
   "target": "es5",
   "module": "commonjs",
   "declaration": false,
   "noImplicitAny": false,
   "removeComments": true,
   "noLib": false
  },
 "compileOnSave ": true
} 

【问题讨论】:

    标签: javascript typescript atom-editor


    【解决方案1】:

    我错过了什么

    您需要在 Web 浏览器(以及可选的 Web 服务器)中禁用缓存。对于初学者,请在 chrome 上尝试“空缓存和硬重新加载”:http://www.code-pal.com/quick-tip-clear-cache-hard-refresh-on-chrome/

    提示:html 与 atom-typescript 无关

    【讨论】:

    • 谢谢。由于生病,我已经有几个月没有编码了。我忘了清除缓存。顺便说一句,你的原子打字稿很棒。对此更加感谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-13
    • 1970-01-01
    • 1970-01-01
    • 2014-08-07
    • 2013-09-10
    • 2015-02-09
    相关资源
    最近更新 更多