简体   繁体   中英

Heroku not loading newly committed CSS into my node app

I have simply updated my main.css file locally, committed it to github and my changes are not showing. I have confirmed these changes should in fact be working by editing the same file with the same small style change in Chrome's developer console. I have checked my github repo and it has all my code up to date. I even made a small HTML change in the same commit and that change was made in the live heroku app. I have tried clearing all heroku/github and chrome caches to make sure that an old CSS file wasn't being used but this is not the case.

Why won't the CSS load? Is this a Heroku problem?

彻底检查路径设置并重新加载。

A similar issue happened to me - it was to do with npm. Every now and then, the path to my dependencies goes awry and I need to reset it with this string in the command line.

export PATH="$HOME/.node_modules_global/bin:$PATH"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM