From the course: Grunt.js: Web Workflows

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Integrating Bower into our workflow

Integrating Bower into our workflow - Grunt.js Tutorial

From the course: Grunt.js: Web Workflows

Start my 1-month free trial

Integrating Bower into our workflow

- Bower is going to take care of loading and also keep track of the different packages that you want to use on your project. But if you want to load these scripts into your web application, you would still have to create individual script and link tags in your HTML. Now thankfully there's a really cool way to have Grunt automatically take care of that for you. So you're going to really love this. The plugin you need is called grunt-wiredep and it's going to inject all the HTML you need into your code automatically through Grunt. So to get this we're going to have to go to our terminal and we'll do a npm install. Again make sure that you are in the right folder. So npm install - -save-dev and then we'll do grunt-wiredep. That stands for wire dependencies. Once you have those installed then you're going to switch over to your project and open up your grunt file, make sure that you add this as an npm task that gets loaded. So that's going to to be grunt-wiredep. And then we can create a…

Contents