danvk / source-map-explorer

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

Allow user to specify template #62

Open pspeter3 opened 7 years ago

pspeter3 commented 7 years ago

Essentially a command line option to specify which HTML template to use.

danvk commented 7 years ago

What's your use case here? There's also a JSON output format that you can feed into other visualizations.

pspeter3 commented 7 years ago

My use case is just to apply some custom styling. I really like the tree visualization but want certain things to be highlighted. Perhaps I should use the JSON version and log it.

danvk commented 7 years ago

What would you like to highlight? There's a long-standing issue to use color but we've been unable to come to consensus on it. https://github.com/danvk/source-map-explorer/issues/21

pspeter3 commented 7 years ago

Some of it is specific to our bundle, like where we vendor third party code, but other is anything greater than 1% or 256kb