-
Notifications
You must be signed in to change notification settings - Fork 212
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
Issue of angular-permission-ui with gulp-uglify #365
Comments
What is your error? What version of angular-permission are you using? |
here:
I use version 4.1.2 Update |
I think your problem is order of concatenated files before minification. Please ensure that ui-router is included before angular-permission. This would assure that internal ui-router methods are present. |
I don't think because when i replace the part of uglified file that has angular-permission-ui with original angular-permission-ui in my build folder, Everything works. The problem is just that part. |
This is the result of uglify process for angular-permission-ui:
By replacing this part (in output file in build folder) with angular-permission-ui.js, there is no error again. Just tested again for ensure of this a minute ago. |
If we compare the "unminified" source code of angular-permission-ui, line 13
became,
So it seems the function passed to the decorator injects a dependency called I don't get why this is happening. Maybe we are missing a |
When i use uglify, angular-permission-ui is broken, But when i disable uglify only on this file, Everything just works.
The text was updated successfully, but these errors were encountered: