-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Please consider adding a command to generate jsconfig.json
#13096
Comments
That is correct.
How would this work? What should it include? |
I tried different configurations again, but autocomplete was not working until I imported the package once. It's more complex than I initially thought. I'll post a working format if I find it. |
So, I think I understand the format (I fiddled with this back when I implemented the
Also, I suspect in most situations it's practical to do module JS dev with something that runs, e.g. a test project that pulls in one or modules and ... build it with |
Yes, it's not obvious, I have a simple implementation that maps
Thank you, I will give this approach a try. |
I assume you have seen this, but workspaces can be really useful for "these" kinds of things: https://gohugo.io/hugo-modules/use-modules/#module-workspaces Also, to get a jsconfig.json file, you don't need to use the bundles you build with it, it should be enough if you do:
Hugo collects source folders built, and creates a |
Thank you for providing a comprehensive solution. I think of a solution that publish the This request doesn't make much sense, so I'm closing it. Thank you for taking time on this again. |
Hi, the
jsconfig.json
is really useful for development, however it won't be created without usingjs.Build
(correct me if I'm wrong).Take nested modules development as an use case, which does not invoke
js.Build
directly.I'd like to generate a
jsconfig.json
insideb
module's assets via a Hugo command (e.g.hugo mod jsconfig gen
), to enable the intellisense feature.The text was updated successfully, but these errors were encountered: