madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
301 stars 94 forks source link

js minification error #211

Closed aleha84 closed 7 years ago

aleha84 commented 7 years ago

Using WebEssentials as Visual studio extension. Got error in minified JS file.

bundleconfig.json content:

[{
    "outputFileName": "build/test.min.js",
    "inputFiles": [
      "test.js"
    ]
  }
]

example file content:

function foo(){
    var a = 1;
    var b = 2;
    if(a < b)
    {
        b= a;
        b++;
    }
}

Result file content: function foo(){var t=1,n=2;t<n&&(n=t,n++)}

The "if" operator is lost. Please help me with it.