我刚刚安装了 atom-typescript。我在 Windows 上。 .ts 文件中的更改会在我保存文件时更新。当更改 html 文件并保存该文件时,更新不会在刷新时显示在页面上。我错过了什么?我已经阅读了 atom-typescript 文档,但没有看到任何关于此的信息。
我的 tsconfig.json 文件是 -
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false
},
"compileOnSave ": true
}
最佳答案
What am I missing
您需要在网络浏览器(以及可选的网络服务器)中禁用缓存。对于初学者,请在 chrome 上尝试“清空缓存和硬重新加载”:http://www.code-pal.com/quick-tip-clear-cache-hard-refresh-on-chrome/
提示:html
与 atom-typescript 无关
关于javascript - atom-typescript 更新 .ts 文件,但 html 中的更改不会在保存时更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31483522/