MinifyAll icon indicating copy to clipboard operation
MinifyAll copied to clipboard

Source map generation for minified Javascript files

Open gysandor opened this issue 3 years ago β€’ 4 comments

πŸš€ Feature Request

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

Generating .map source maps for minified Javascript files would be a useful option.


Describe the solution you'd like

terser supports source map generation, and it can be added to the settings.json options (MinifyAll.terserMinifyOptions). However, it just provides the generated map in the ouput object's "map" property, it needs to be saved by the extension. I think, the minified filename trailing with the ".map" extension would be a good output file. With that, only a simple checkbox is enough in the extension settings panel (for enabling "sourceMap":true in terser config object and saving the output.map to output map file).

gysandor avatar Jan 07 '22 11:01 gysandor

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

welcome[bot] avatar Jan 07 '22 11:01 welcome[bot]

I'm looking for a replacement for JS & CSS Minifier (Minify). I liked it because it generates a source map, but the CSS optimization had some issues and the project appears to be archived. Please consider adding support for source map creation.

JamoCA avatar Jun 20 '23 15:06 JamoCA

A big 'PLUS' for generating source maps! Indispensible when working with code.

enoversum avatar Nov 30 '23 09:11 enoversum

I too would like to see source map generation in this plugin. Thanks!

pjmdesi avatar Dec 14 '23 19:12 pjmdesi