Search code examples
javascriptruby-on-railsvue.jsruby-on-rails-5vue-strap

Install VueJS components in a rails project


I'm trying to get a set of VueJS components i.e. VueStrap, installed in a Rails project. VueJS is setup and working correctly.

Typically I would use npm to install VueStrap if I was doing this outside of a Rails project.

How can I install VueStrap in a rails project?


Solution

  • You should take a look at the webpacker gem. You can then use webpack + yarn very easily with Rails.