I am using webpack mix for hot reload of vuejs in laravel app. However, I receive the error message in each page load after running npm run hot
Cannot GET /
for home page /
webpack.mix.js
const mix = require('laravel-mix');
var webpackConfig = {
devServer: {
proxy: {
host: 'domain.local', // host machine ip
port: 81,
},
watchOptions:{
aggregateTimeout:200,
poll:5000
},
}
}
mix.options({
hmrOptions: {
host: 'mmta.local', // site's host name
port: 81,
}
});
mix.webpackConfig(webpackConfig);
mix.js('resources/vue_app/src/main.js', 'public/app/js')
.sass('resources/vue_app/src/styles/style.scss', 'public/app/css');