invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
38 stars 5 forks source link

Pipe source maps through to UglifyJS #68

Open invicticide opened 6 years ago

invicticide commented 6 years ago

Minified output that throws an error is annoying to debug because the call stack indicates source locations that are basically nonsense.

UglifyJS (used by html-minifier for the JS portion of minification) supports source maps: https://github.com/mishoo/UglifyJS2#cli-source-map-options

They're just not piped through right now.