Last active
November 19, 2019 04:04
-
-
Save sam-ngu/8a2817920ec569a197aed71f4ee9bf73 to your computer and use it in GitHub Desktop.
Laravel Mix + Vuejs Hot reload config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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