madskristensen / BundlerMinifier

Visual Studio extension
Other
616 stars 173 forks source link

minifier does not recognize ` character for multiline strings #464

Open gfbahadir opened 4 years ago

gfbahadir commented 4 years ago

Installed product versions

Description

i used ` character for some multiline strings in my js file and it seems minifier does not understand this character and returns whole bunch of errors. for example:

var jqueryDiv = `
<div data-some-var="test">
</div>
`;

returns illegal assignment: = errors

Steps to recreate

  1. use `` to create a html string
  2. minify the file