danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.83k stars 101 forks source link

Impossible to pipe into file.html with multiples js files #89

Closed YoannDelpierre closed 5 years ago

YoannDelpierre commented 5 years ago

Hello,

I'm trying to pipe output in a html file, i'm using source-map-explorer --html 'build/static/js/*.chunk.js' > explorer/index.html

But piping the output is not working, I got an empty file every time. But it opens my browser with the good output.

Am I missing something ?

Thanks

YoannDelpierre commented 5 years ago

OK just seen https://github.com/danvk/source-map-explorer/blob/0d7fca9fbff4ec9b6a735c8db05255a4f9b7523d/index.js#L625

Any reason for this ?

danvk commented 5 years ago

@nikolay-borzov do you remember why that's there? It does seem potentially useful to output HTML for multiple bundles.

YoannDelpierre commented 5 years ago

Yes it is. I used my fork right now and very cool to be able to publish a html file :)

nikolay-borzov commented 5 years ago

I don't remember. Perhaps I thought it wasn't possible to output HTML to console or there was some limitation on code level

nikolay-borzov commented 5 years ago

@YoannDelpierre, feel free to implement multiple bundles HTML output

YoannDelpierre commented 5 years ago

I will try, will be off next week, so mid of march I hope.