Skip to content
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

npm run watch endless loop of when using ./_site/**/*.html in the Tailwind config #146

Closed
caendesilva opened this issue May 4, 2022 · 1 comment

Comments

@caendesilva
Copy link
Member

This is related to laravel-mix/laravel-mix#1942 and can probably be fixed by adding the package fast-glob. However, I want to keep dependencies light, so it will not be included with Hyde at this point in time. The issue only happens when running Laravel Mix with the watch script. Running Tailwind with their watch script does not seem to have this issue.

@caendesilva caendesilva changed the title 'npm run watch' endless loop of when using ./_site/**/*.html in the Tailwind config npm run watch endless loop of when using ./_site/**/*.html in the Tailwind config May 4, 2022
@caendesilva
Copy link
Member Author

Closing as I mainly started this issue to document the issue.

caendesilva added a commit that referenced this issue May 4, 2022
Adds back the site glob pattern that can cause an endless loop, but adds a warning. See #146
caendesilva added a commit that referenced this issue May 4, 2022
The whole issue was caused due to me forgetting to add the _pages directory which now can contain Blade files. The loop should now be fixed since we never touch any site files, nor should we need to.
caendesilva added a commit that referenced this issue May 4, 2022
Fix #146 by adding _pages to Tailwind content
caendesilva added a commit to hydephp/develop that referenced this issue Jun 7, 2022
Adds back the site glob pattern that can cause an endless loop, but adds a warning. See hydephp/hyde#146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant