angular js $injector:modulerr Failed to instantiat

2019-07-20 16:19发布

Trying to uglify angularjs app with mangle causes the error. However I've read that that should be fixed by ngmin. I use ngmin to properly wrap my controller code in an array as required by angular. I can confirm that ngmin works and all my code is wrapped. Only mangling causes the error, mangle:false works just fine. Can anyone confirm whether mangling is supposed to work or if there are edge cases other than the array issue that causes mangling to fail.

Thanks.

1条回答
别忘想泡老子
2楼-- · 2019-07-20 17:11

I could not get it to work with ng-min. However I did get it to work with ng-annotate. https://github.com/olov/ng-annotate

It's a fantastic replacement for ng-min.

查看更多
登录 后发表回答