insidert

Upgrading to Laravel Mix 4 in Laravel Projects

A simple guide for upgrading.

You may run into issues while upgrading to Laravel Mix 4 in your Laravel projects. Here are a few things to make the upgrade easy.

// Old
Vue.component('example-component', require('./components/ExampleComponent.vue'));

// New
Vue.component('example-component', require('./components/ExampleComponent.vue').default)

Do npm install


#javascript
#laravel
#vuejs
#code