Tuesday, May 17, 2016

What do the .min.js.map files do in the Web Essentials way of doing things?

They associate whatever.js to the whatever.min.js file that gets made from it, the later being the minified version of the former. An association tells where to spit out the minified file to and also allows for debugging inside of a minified file to defer back to the beautified version so that it's easier to set breakpoints, read code, and tell what is going on. Why can't the two just be associated by naming convention? It seems like that would work most of time and the map is really only needed if you want the minified file to have a different name or live in a different folder. I wonder if there is just a way to turn the maps off for ninety-nine percent of the use cases where that doesn't apply. I duuno. What overhead, eh?

No comments:

Post a Comment