Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fredemagi's avatar

Compiled css not reflecting changes after deploy

I have made some changes locally to a css file which works locally. However, when I deploy to Laravel forge, the css file gets uploaded, but the compiled css file (combined of all) does not contain the change. What could be wrong?

0 likes
4 replies
Tray2's avatar

Are you uploading the "compiled" css or the partial?

If it's the partial you need to compile it on the server.

I suggest upploading the compiled css.

fredemagi's avatar

Im uploading all the partials which are compiled and combined in the deployment process with npm run production. I can see that the partial CSS is uploaded (using filezilla), but the compiled dont reflect the change :/.

fredemagi's avatar

For some reason, its working now 😂🙄.

Tray2's avatar

It could take a little while before it invalidates the cache.

Please or to participate in this conversation.