btford/ngmin

did not support JavaScript closure

Closed this issue · 2 comments

my code was generate by coffee with closure default
e.g:

(function() {
'use strict';
}).call(this);

after ngmin

(function () {
'use strict';
}.call(this));

it should be

(function () {
'use strict';
}).call(this);

(function () {
'use strict';
}.call(this));

it should be

(function () {
'use strict';
}).call(this);

These are equivalent.

ngmin parses and regenerates the source. What it generates is considered a best practice. There may be some other option you could pass to escodegen that preserves your syntax, which you could use with ngmin programmatically.