-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for javascript enclosures? #89
Comments
I'm not keen on this. I don't think this pattern buys you anything. Try ngmin with |
You can get the same enclosures doing it this way: (function(angular) {
angular.module("someModule").controller('SomeController', function ($scope) {
});
}(window.angular); but really the enclosure could/should(?) be added by your build system after concatenating your code |
…ngmin#89, btford/ngmin#87, btford/ngmin#85, btford/ngmin#78, btford/ngmin#77, btford/ngmin#73, btford/ngmin#70, btford/ngmin#64, btford/ngmin#63, btford/ngmin#61, btford/ngmin#59, btford/ngmin#57, btford/ngmin#56, btford/ngmin#54, btford/ngmin#50, btford/ngmin#46, btford/ngmin#43, btford/ngmin#42, btford/ngmin#37, btford/ngmin#35, btford/ngmin#22
Please try https://github.com/olov/ng-annotate. ngmin is now deprecated: #93 If your issue isn't resolved there please open an issue at https://github.com/olov/ng-annotate/issues If you really want ngmin to fix this issue, feel free to fork it and use that. |
I'm trying to follow better javascript patterns espoused by "the greats" like Douglas Crockford, and I found that using enclosures breaks ngmin..
It never sees the controller declaration and leaves it alone. Should this be working?
The text was updated successfully, but these errors were encountered: