Closed lwiesel closed 8 years ago
Could you try to exclude angular from browserify parsing, and tell me ?
Just add it right there: https://github.com/Elao/node-module-assets-gulp/blob/master/tasks/js.js#L20
Just tried it. I changed noparse: ['jquery']
to noparse: ['jquery', 'angular']
.
I get the exact same result...
I tried to comment the lines linked to uglify : https://github.com/Elao/node-module-assets-gulp/blob/master/tasks/js.js#L32-L35
It compiles without error.
Issue Type: Bug Report
Lib Version: 0.3.*
Lib Configuration:
Environment: Unix
Summary: Angular Js built in prod mode is not valid. In dev mode everything is OK though.
Steps To Reproduce:
Install angular:
Build the following file:
with the following command:
Expected Results:
Angular loaded without error when page is loaded.
Actual Results:
Here is the error I got in my browser console:
_I suspect uglify for being responsible._