-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Make use of Hugo's 0.56+ module feature. #29161
Conversation
af0cbc3
to
a79e961
Compare
@bep: I read the docs, but I'm probably missing something. Is this how modules are supposed to work or do we need Go installed for this too? |
0bc7b9d
to
90dbf9c
Compare
This commit works with the unreleased (and unmerged) Hugo version: https://github.com/bep/bootstrap/commit/154417df22aa442b67e593aab0cf301a7f4cfc41 |
Nice! Can't wait to try it when the next version is out :) BTW, just thinking out loud for the sake of flexibility. Wouldn't it be more flexible if one didn't have to add all mount points, but only the ones they want to use? I know our use case might not be the most common one, but still. Maybe I'm missing something, I'll play with it when the new version is out :) |
You only have to add the mounts you use. There are some superfluous mounts there now. (archetypes? i18n?), but I didn't know the project good enough to remove them. |
Perfect, thanks! I'll play around with the branch when 0.56.3 is out and let you know if we hit any more issues. |
1ea0504
to
5d93b6d
Compare
@bep: I just gave this a go and works pretty good. Thanks for the fast fixes! The only thing I noticed when playing around with SRI generation (I dropped the patch from this branch now though), and I had set another mount to I'll make a branch for this later and see if we have any issues there. |
89b71d7
to
350408c
Compare
@bep: can you checkout this branch and do If I change an HTML or markdown file and hugo rebuilds the site, then the error goes away. |
0edc0a3
to
e877b53
Compare
Confirming the npm scripts run for me, but at |
I definitely don't have the issue @MartijnCuppens mentions. I do have the same issue @mdo says above with watch. This doesn't happen for me on Windows without the mount changes. |
In fact, I'm able to trigger the file not found error if I modify dist/css/bootstrap.css manually:
|
519888d
to
40e5c79
Compare
1feafb1
to
893b77e
Compare
893b77e
to
0c4b8e7
Compare
0c4b8e7
to
a789d51
Compare
I think now we are ready to merge this. I tested it on Windows, no errors when watching. Huge thanks to @bep for working towards fixing the bugs we found with mounts! |
I need an approval @mdo @Johann-S @MartijnCuppens after you guys try this (make sure you do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works here!
Need to make sure we don't have the dist folder copied locally before testing this.
Fixes #29142