Publish final bundles in the `dist/` folder
See original GitHub issueIs your feature request related to a problem? Please describe.
I wanted to set Mermaid as a dependency of a Hugo theme. To do so, Hugo allows adding Hugo Modules that are like Go Modules: you put the repo of the dependency and access its content. The problem is that this repo doesn’t provide a copy of mermaid[.min].js
in its dist/
folder. That is only available in the npmjs package. That’s why it can’t be used as a Hugo/Go Module.
Describe the solution you’d like
Commit mermaid[.min].js
in the dist/
folder. Either everywhere (master
/develop
/etc) or just in release/X
branches.
Describe alternatives you’ve considered For the time being, I’m forced to copy the JS file by hand to my project, which bypasses all the benefits of a proper dependency version management like Go Modules (same as npm, etc.)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
We should do this. I’d also like to extend
yarn build
so it creates the minifed version as well in one go.Alright, then I’ll reset the ignore file to stop distributing the build files (starting with the next release) until we can come up with something better.