ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
753 stars 113 forks source link

String interpolation in js with `` is not minifield #254

Open SwapnilLomate opened 1 year ago

SwapnilLomate commented 1 year ago

When we have `` these symbols which we use for C# like string $"user Id:{id}" and if we have new line in those statements then the JS minify is not able to minify those statements.

${config.getApi()}transaction/getdate/ ${source}/${entityId},

Is it an issue or its because of those string interpolation that it expects JS to print data with new line?