Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
71 stars 10 forks source link

Source map generation for minified Javascript files #141

Open gysandor opened 2 years ago

gysandor commented 2 years ago

πŸš€ 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).

welcome[bot] commented 2 years ago

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!

JamoCA commented 1 year ago

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.

enoversum commented 8 months ago

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

pjmdesi commented 7 months ago

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