How to add bootstrap to our Sails.js 0.10 project


Posts about Sails.js 0.10


As Scott Gress says on this post we don't need anymore to use the option --linker when we are creating our project to auto link assest to our generated project.

So if we want to add bootstrap to our project we just need to add the corresponding javascript to assests/js

I recommend create a folder inside js called vendor to put there third party javascript files.

An import step at this point is do not forget set the order to inject our javascript files, in this case jquery have to be loaded before bootstrap and to do that we have to modify Grunt pipeline.js file like this:

And load jquery before any other javascript that Grunt will find in our assests/js folder.