config/webpack/environment.js
const { resolve } = require('path')
environment.config.merge({
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('app/javascript/packs'),
'&': resolve('app/javascript/packs/components'),
},
},
})
サーバーの再起動が必要です。