Un-minified bundled js
See original GitHub issueIs your feature request related to a problem? Please describe.
Often I find myself looking at call stacks like this:
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:
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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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