jsmin icon indicating copy to clipboard operation
jsmin copied to clipboard

spaces within backtick strings are left out in some circumstances

Open louking opened this issue 4 years ago • 1 comments

e.g.,

d3.selectAll(`#${that.options.statstable.containerid} table`).style("display", null);

is compressed to

d3.selectAll(`#${that.options.statstable.containerid}table`).style("display",null);

Note the missing space between } and table

louking avatar Apr 23 '22 10:04 louking

The current version does not promise to support backtick strings. You might get success by using the quote_chars parameter, but it's not explicitly supported; in particular there aren't robust tests for the various things that can appear inside the string. I no longer maintain jsmin to keep up with changes to javascript's syntax.

tikitu avatar Apr 25 '22 06:04 tikitu