I am using grunt-injector in new projects. It is configured to add all the bowler dependencies to the index.html file.
I have ionic ones in my dependencies and I use it only for javascript file and not for css. Therefore, I would like this crunch injector not to add an ionic css file to my project.
here is my configuration:
injector: { options: { addRootSlash: false, ignorePath: 'app/', bowerPrefix: 'bower', }, bowerDependencies: { files: { 'app/index.html': ['bower.json'], } }
I could do this by changing ionic / bower.json:
"main": [ //"css/ionic.css", "fonts/*", "js/ionic.js", "js/ionic-angular.js" ]
But of course I would rather not do it
javascript gruntjs
leseulsteve
source share