Search code examples
ruby-on-railswebpackturbolinks

Can you use turbolinks with webpack in rails?


This post provides an excellent tutorial on how to replace the rails asset pipeline with webpack. However, it states that you should remove the turbolinks gem. Is there a way to do this and still use turbolinks?


Solution

  • You can use it directly from NPM https://www.npmjs.com/package/turbolinks and follow the provided documentation.

    Here is the doc https://www.npmjs.com/package/turbolinks#installation-using-npm

    This the same as when you use Turbolinks in other frameworks.