Minification using Grunt Build (usemin) breaks app
Opened this issue · 2 comments
nroma commented
I made an AngularJS project using yeoman and related build tools.
Running the command:
grunt serve
everything is working as expected.
Running the command:
grunt serve:dist
or grunt build
the generated app in dist folder is not working giving the following error:
vendor.f13d432c.js:1 Uncaught Error: [$injector:modulerr] Failed to instantiate module MyApp due to:
Error: [$injector:modulerr] Failed to instantiate module angular-inview due to:
Error: [$injector:nomod] Module 'angular-inview' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
I think is something related on usemin task for minification process.
Is anybody else experiencing this problem?
thenikso commented
strange, I never had minification issues. Also the error seams more like as if your build process is not including angular-inview
in your vendors. could it be?
Usama4745 commented
I am trying with gulp.js
same error like nroma is facing