Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Laravel Mix V6

Muah edited this page Dec 25, 2020 · 9 revisions

the new mix requires some extra setup to make things work especially that we are now using wp v5, so

  • check mix UPGRADE.md

  • under webpack.mix.js, add vue() to your js files ex.

mix.js('resources/assets/js/app.js', 'public/js').vue()

// and also resolve vue globally 
// or we would get an errors like 
// 'window.Vue.use is not a function' or 'Vue is not a constructor'
mix.webpackConfig({
    resolve: {
        alias: {
            vue: 'vue/dist/vue.js'
        }
    }
})
Clone this wiki locally