samedi 7 mars 2015

Grunt cdnify issue with nested bower folder

I'm trying to cdnify the jquery library using grunt-google-cdn, but my bower_components folder is in a nested folder: app/shared/bower_components.


The grunt task is running, but creating this kind of link:


original line in app/index.html:



<script src="shared/bower_components/jquery/dist/jquery.js"></script>


line in output dist/index.html:



<script src="shared//http://ift.tt/1vhyxae"></script>


In my gruntfile:



cdnify: {
dist: {
html: ['dist/*.html']
}
},...


And the content of .bowerrc:



{
"directory" : "app/shared/bower_components"
}

Aucun commentaire:

Enregistrer un commentaire