I have my site set up with Laragon on Windows.
I’m using WSL to run build commands within the theme directory.
If I run yarn build
I can see app.{random version}.css within my code.
My heading colour reflects the Tailwind CSS that I’ve added.
If I change my Tailwind CSS class to a different colour, the text reverts to it’s default.
I understand that this is due to the new style not being present within the app.{random version}.css file.
If I run yarn dev
the colour change to my heading displays correctly again.
I’m a little confused as to what’s going on here.
There’s no sign of app.css or app.{random version}.css etc at this point.
I’ve got 4 css files being loaded. Two are core and two are plugin related.
I’ve tried searching the code for the class name, encase the style is injected directly into the code.
Anyway, the bigger issue is that if I change my Tailwind CSS class to another colour, the text reverts to it’s default again.
With Sage 9, I was used to viewing my site via http://localhost:3000/ with BrowserSync.
I’m not sure if it’s related, but when I visit http://localhost:3000/ I just get an error.
Cannot GET /
Sorting out BrowserSync is next on my list, but there doesn’t appear to be as much information on this, with Sage 10.
Do I need to tackle accessing my website via http://localhost:3000/ to see TailWind CSS changes update, without having to run yarn build
each time?
Am I fighting a loosing battle trying to develop on Windows with Laragon and the WSL?
Should I be focussing on a setup that involves more complex tools, like Docker and Devilbox etc?
I also use Mac’s, but I’d still like to be able to do local development in a Windows environment with WSL, as well as Mac local development.
Any advice would be greatly appreciated. Thanks!