Preview not picking up updated CSS #1991
Replies: 4 comments 3 replies
-
Can you open the default project from |
Beta Was this translation helpful? Give feedback.
-
Live preview works fine with the default project. So I am now actively trying to track down exactly what difference between the default project and mine caused the problem. All along it's seemed like there is a cache somewhere that is not getting refreshed when needed. |
Beta Was this translation helpful? Give feedback.
-
I'm not using less or scss. But I AM using a custom server. I'm doing that because I have include files and without the custom server they don't get brought in. I've tried with a .HTML project and a .PHP project. I am seeing a situation where the in-app preview window shows a stale css yet the pop-out (which opens in Chrome) shows the updated css correctly. (I accept I need to do a refresh.) It's all very quirky - I'm still trying to find a simple case to narrow down exactly what the trigger is between working and not. |
Beta Was this translation helpful? Give feedback.
-
I'm using XAMPP for Windows v8.2.12. I've been trying very hard to produce a minimal repeatable case, but without success because I cannot see any pattern for when things work and do not. Here is some of what I have found - maybe it will help you!
I wish I could come up with something repeatable as without that I can't expect you to find the solution - maybe my rough hints above with help a bit. If I can come up with anything else or better I'll pas it on. Thanks for you efforts (and for all the fine coding that's in Phoenix). |
Beta Was this translation helpful? Give feedback.
-
When I make a change in my CSS file the change does not show in the Live Preview. If I "Inspect" it still shows the old version of the styles. Same problem going to Chrome or Firefox from the Live Preview buttons. Ctrl-F5 does not help. The only way to see the styles change is to exit and restart Phoenix. Changes in the html DO show OK in the Live Preview.
Also on my Win 10 PC I get "Error opening live preview in chrome".
I'm running PCs with both Windows 10 and 11 Home, XAMPP, Chrome and Firefox. All fully updated. I have reinstalled XAMPP and Phoenix, and tried using ports 80 and 8080 - all no differences.
If I just run localhost:8080/myproject/index.html in a browser it works fine - Ctrl-F5 will load the updated CSS file, but that's nothing like as convenient for developing.
I've been using Brackets for several years and it still does the Live Preview fine, without these problems.
Any suggestions what to try please - I've wasted a ton of time trying to fix this?
Beta Was this translation helpful? Give feedback.
All reactions