Angularjs uses gulp-uglify to compress and then execute an error,
The cause of the problem is that after compression, the variable becomes e, s, t, and so on. The method for dependency injection does not use braces for injection, but is directly used in function parameters, as a result, the modules to be injected cannot be identified after compression. For example:
Var module = angular. module ('homeapp', ['ui. router ']); module. config (function ($ sceProvider) {$ sceProvider. enabled (false );})
Changed:
Var module = angular. module ('homeapp', ['ui. router ']); module. config (['$ sceProvider', function ($ sceProvider) {$ sceProvider. enabled (false);}])
Use gulp-uglify again to compress and then run normally.
The preceding solution for angularjs to execute error reporting after using gulp-uglify compression is to share all the content with you. I hope to give you a reference and support for the customer's house.