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.

Un-minified bundled js

See original GitHub issue

Is your feature request related to a problem? Please describe.

Often I find myself looking at call stacks like this:

image

And it’s usually because I’ve done something stupid, but netlify-cms is not being very helpful in my attempt to figure out what I did.

Describe the solution you’d like

Two .js outputs in the dist folder of the netlify-cms package (ideally, also the various other packages like netlify-cms-app etc. but netlify-cms would be a good start). Similar to js-yaml:

image

Then the docs could be updated to refer to index.min.js instead of index.js. Or, to avoid accidentally expanding bundle sizes, they could be named index.js and index.unminified.js.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mmkalcommented, Jan 21, 2022

Yes you are right, just an oversight on my part. I’ll fix and open a draft PR, it’ll be easier to talk there.

1reaction
erezrokahcommented, Jan 21, 2022

Won’t https://github.com/mmkal/netlify-cms/commit/45663be72f33574c7f38c0205aa5f92d6f2a02e0#diff-a393479db8dc8b6868eef8f5fa99c576654d75fb00336dc82c2be71789c6d4dfR86

create <package-name>.bundle.js and <package-name>.bundle.unminified.js? I can’t be sure without running it locally, though I think we’d prefer to not change the current minified name

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack - unminified files in bundle js - Stack Overflow
I am new on webpack and I am working on a project in which we load only one file bundle.js, I know I...
Read more >
Unminify JS, CSS, HTML, XML and JSON Code
This tool will unminify, reformat and reindent ugly JavaScript, CSS, HTML, XML and JSON code, making it readable again.
Read more >
How to build both minified and uncompressed bundle with ...
By doing as above, you will get two files bundle.min.js and bundle.js . Sources: https://www.npmjs.com/package/unminified-webpack-plugin ...
Read more >
Minification failed: Returning unminified contents - Steve Fenton
It can happen for JavaScript or CSS, but it means minifier has found something ... Use the unminified code in your bundle, and...
Read more >
Bundling and Minification | Microsoft Learn
js ")); // Code removed for clarity. } The preceding code creates a new JavaScript bundle named ~/bundles/jquery that includes all the ...
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