mcalthrop / angular-spa-demo

Demo code for a Single Page Application using AngularJS
MIT License
20 stars 19 forks source link

Concat all JS files into a single file for prod build #19

Closed mcalthrop closed 10 years ago

mcalthrop commented 10 years ago

Modify the build process so that for a prod build:

And for a dev build:

mcalthrop commented 10 years ago

Hmmm... after trying for a couple of hours, I haven't yet found a solution.

Have tried using the grunt-contrib-concat package, but with no joy; keep getting this JS console error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module MainApp due to:

I tried adding the files in question (ie, all the Angular includes) to the ngmin module, but got the same result.

Leaving it for now.