-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use cdnify? #441
Comments
You need leave that script tag outside of the build blocks in the index.html |
I've done this but the xxx.vender.js in the dist path still contains the angular.js source. ?? |
You can exclude the angular.js script from being injected, have a look a the exclude pattern on the bowerInstall task. |
I was actually hoping for the oposite. I want the bower unminified code injected for development. |
While digging into this I spotted an issue with the cdnify task, it should look like this to correctly point to the index.html:
I pushed an update but won't be releasing a new version right away, so you'll have to update that yourself. Once you do that, just exclude the bower dependencies as i mentioned, then manually include the bower scripts for angular and whatever other libraries outside of the build block. They should then get cdnified on build. |
I was hoping to have
"//ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"
(I''ve left off the script tags as git doesn't seem to like them)
or any cdn for angular....
placed in my dist build and the bower component not put in vendor.js.
This is not happening in 2.08.
Do I need to add the above script tag to index.html (somewhere)?
Do I need to add anything to the grunt:cdnify to get this to work?
The text was updated successfully, but these errors were encountered: