https://github.com/rails/webpacker#vue
To use Webpacker with Vue, create a new Rails 5.1+ app using --webpack=vue option:
# Rails 5.1+
rails new myapp --webpack=vue
(or run bundle exec rails webpacker:install:vue on a Rails app already setup with Webpacker).