question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish final bundles in the `dist/` folder

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
GDFabercommented, May 22, 2020

We should do this. I’d also like to extend yarn build so it creates the minifed version as well in one go.

0reactions
GDFabercommented, Nov 17, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to bundle an Angular app for production - Stack Overflow
For a production usage, you have to deploy all the files from the dist folder in the HTTP server of your choice.
Read more >
Output Management - webpack
Now run an npm run build and inspect the /dist folder. If everything went well you should now only see the files generated...
Read more >
How to bundle an Angular app for production? - GeeksforGeeks
The dist folder contains the compiled code of your angular application in the format of JavaScript and also the required HTML and CSS...
Read more >
Deploy to `gh-pages` from a `dist` folder on the ... - gists · GitHub
We aren't done just yet. Now go to your repository in GitHub. Go to Settings. Go to Pages. Under the Source section you...
Read more >
How to publish a npm package in four steps
Put this in your root folder. We just defined our webpack configuration. mode: 'production' enables various performance improvements in our final bundle.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found