- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bud dev not watch blade.php files #1004
Comments
I have the same issue described above – no recompilation or reloading when a Blade file is changed. I'm seeing this after creating a fresh Sage WordPress theme today using
Here are the relevant lines from my module.exports = (app) =>
app
.entry({
app: ['scripts/app.js', 'styles/app.css'],
editor: ['scripts/editor.js', 'styles/editor.css'],
})
…
.watch([
'tailwind.config.js',
'resources/views/**/*.blade.php',
'app/View/**/*.php',
'resources/styles/**/*.css',
])
… Apologies if this comment is better suited to be filed under roots/sage, but since I saw the issue only posted here, I thought I should stick to the relevant thread rather than create a second one. |
Hi farmerpaul, for this specific case there is a good section in the official tailwindcss documentation: |
Thanks @franzonelorenzo – although that page doesn't seem to be helpful for me. The infinite recompiling happens even when I don't specify any CSS files in the |
yes in my case the loop problem was caused exclusively by the purge in the tailwind.config.js solved by adding all the specific files, but the list was really too long so I opted for the bedrock folder structure. :) |
I have a fix for this in draft. Just need to confirm it's working in an actual project and then we're good to ship it. |
If you'd like a one more confirm, I could try on an actual project too @kellymears |
@kellymears I'm trying to test your PR in my project, but I'm having trouble figuring out how best to easily pick your branch
which I guess worked (there were no errors), but what it ended up doing was add the package under EDIT: Looks like the directory structure under EDIT 2: So I think I understand now that I need to basically set up a development environment for
This is feeling somewhat out of my wheelhouse at this point, but I do want to help… |
this is fixed in the upcoming 5.2.0 release, just keeping it open until the release is tagged |
Thank you @retlehs !!! :) |
v5.2.0 is out thanks to @kellymears 🎉 sage users can reference roots/sage#2959 to see what's changed from v5.1.0 to v5.2.0 in sage |
hello! after having troubles updating "bud" and "sage" I tried with a new clean test installation "roots bedrock" + "roots sage" to verify the "bud dev" command.
modifying javascript and css file the page immediately applies the changes, but if I edit a blade.php file I can see these changes only by reloading the page.
bud.config.js file setup is the original one.
also note that the tailwind-debug-screens plugin with the update is no longer shown in the "body" tag of index.php.
Has anyone had the same problem in development? thank you all.
The text was updated successfully, but these errors were encountered: