Skip to content

Instantly share code, notes, and snippets.

@sam-ngu
Last active November 19, 2019 04:04
Show Gist options
  • Save sam-ngu/8a2817920ec569a197aed71f4ee9bf73 to your computer and use it in GitHub Desktop.
Save sam-ngu/8a2817920ec569a197aed71f4ee9bf73 to your computer and use it in GitHub Desktop.
Laravel Mix + Vuejs Hot reload config
mix.options({
hmrOptions: {
host: 'laravel.dev.local', // site's host name
port: 8080,
}
});
// // fix css files 404 issue
mix.webpackConfig({
// add any webpack dev server config here
devServer: {
proxy: {
host: '0.0.0.0', // host machine ip
port: 8080,
},
watchOptions:{
aggregateTimeout:200,
poll:5000
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment