Hierarchy:
- App
- .tmp // temp files
- app // source files
- dist // dist files
So if I put the devcode:build before requirejs:
- Files from "app/scripts" are processed and saved into ".tmp/scripts"
- Requirejs will be pointed to load the ".tmp/scripts"
- Then fails because bower_components are not found at "bower_components"; Of course, because bower_components are located in "app/bower_components"
If I inverse the order:
- Requirejs removes the comments and devcode doesn't work
I will remove require.js optimizer and then my build is not ok. Should I pass another uglify over it.
Any better solution? (don't make the pc to copy bower_components all over again, or I might change the position up to the root?)
Thanks