Hi,
I’m working on a project with Sage + Bedrock + Tailwind.
When i use yarn start, browsersync works, and it opens a chrome tab where I can see changes in the HTML/CSS whenever I apply/remove css classes that comes with the framework Tailwind. And that’s fine!
But when I add some custom classes to one of the .scss files (even main.scss), and I apply them to HTML elements, the dist folder doesn’t get compiled again, and so I can’t immediadly see changes in the browser, untill I stop browsersync, and re-run yarn start.
I already know that the styles are just injected by browsersync and that the dist folder is getting “ignored” after that, but re-running “yarn start” to see changes take to much time.
So, is there a way to have the dist immediatly rebuild when I make changes to .scss files, so that I can se them in the browser? Or generally, is there a better way to handle the delevopment process?
The dist folder is not rebuilt by yarn start. When running that command, styles should be inserted into the document by JavaScript. When you enqueue your styles in WP are you using the asset() function?
I understand dist is not created each time I edit a file, but using ‘yarn start’ command I would like to be able to add (just for example) a custom class in global.scss and I would like to see immediately changes.
I can reproduce the same identical issue, working on OSx, Sage 9.0.9, Bedrock, and… Tailwind!
Trying to use Bootstrap, BrowserSync is working fine (as aspected), doing the same identical things with Tailwind it seems a problem occurred.
Files are compiled without any error (apparently) but page doesn’t change until I yarn build or until I stop yarn start and relaunch it.