sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
284 stars 24 forks source link

JSMin does not produce one-liner #109

Closed Suppenhuhn79 closed 3 years ago

Suppenhuhn79 commented 3 years ago

IMO JSMin should produce a single line of code (except for if there is a comment at the beginning). But it does not. Here's a sample JSMin-output:

if(window.location.query!=="")
{console.log("no query");}
else
{console.log("yes, there is a query");}
sunjw commented 3 years ago

No, it can't. Just a formatter.