- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
index.{scss,sass} files not handled in imports #13123
Comments
A workaround may be to set up some cache busting config, see https://gohugo.io/getting-started/configuration-build/#configure-cache-busters -- e.g.: [build]
[[build.cachebusters]]
source = 'assets/.*\.(scss|sass)'
target = 'css' |
I had a quick look at the repo, and the reason that particular repo does not work is that Hugo's custom import resolver does not currently resolve |
@bep thank you!! I don't even want to think about how many hours we wasted debugging this 😅 I can confirm that both your solutions work. I opted for |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hot reload does not work properly when changing files in assets sub-subfolders (eg,
assets/styles/components/_container.scss
). The server detects a change, but new styles are not applied.If you change a file that triggers the rebuild correctly, assets from subfolders also trigger it correctly from that point on.
Minimal reproduction repository: https://github.com/martinjagodic/hugo-sass-debug
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes. The bug started in v0.123.0 but is still present in v0.139.3. Tested only with hugo extended.
The text was updated successfully, but these errors were encountered: