Closed Hoverbear closed 8 years ago
This should maybe be pulling off CDN now that I think about it. Thoughts?
I'm undecided on this.
Pros:
Cons:
Also, angular-seed is still including the scripts.
Maybe we could we could add commented out lines that would add Angular through the CDN and remove the script files from the build.
Maybe use a fallback?
<!-- Angular JS off CDN, otherwise fallback. -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script>
<script>
window.angular || document.write('<script src="scripts/vendor/angular-1.0.2.min.js"><\/script>')
</script>
For example
fallback is the way to go!
Actually, it might be cool to have brunch swap out the local script for the proper CDN version on production compile. I have no idea how difficult that would be to accomplish... but that'd be pretty slick!
I'm not sure if this is maintained much anymore... but if so, relevant to this item Angular is now at 1.2.3.
1.3.8
Is the latest version, 1.2.x is now legacy.
Currently using Angular JS 1.0.2 when stable is 1.0.3.