tdewolff / minify

Go minifiers for web formats
https://go.tacodewolff.nl/minify
MIT License
3.74k stars 220 forks source link

JS/CSS: source maps #25

Open calebdoxsey opened 9 years ago

calebdoxsey commented 9 years ago

Not sure if it's on your road map but source maps would be nice.

Competing tools already support them:

Personally I don't care so much about CSS source maps, but its pretty vital for Javascript debugging. Unfortunately source map generation can be tricky, especially when merging multiple files or going through several layers. (coffescript -> javascript -> merged javascript -> compressed javascript)

tdewolff commented 9 years ago

Good request, but not something I will attend to anytime soon though...

I'll put it on the roadmap!

tdewolff commented 8 years ago

Source map specs: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#

Splizard commented 4 years ago

Integrate https://github.com/evanw/esbuild ? It's written in Go.

(From the Readme) Major features:

tdewolff commented 4 years ago

The author of esbuild made it clear that he will not provide an API for libraries even though it was widely requested. This means minify can't incorporate esbuild. Another fact is that esbuild is meant for a complete JS source for a website, while minify doesn't make this assumption and works with individual files.

Otherwise:

So unfortunately, it isn't really feasible nor advantageous to integrate esbuild.

trymeouteh commented 6 months ago

Would like to see this feature for easier debugging with the option to have inline sourcemaps.