Fix hotloading (#1209)

This commit is contained in:
Joris MASSON 2020-04-18 12:15:43 +02:00 committed by GitHub
parent 8ea29584b0
commit d841ca7c62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class Application extends IlluminateApplication
if (isset($manifest[$file])) {
return file_exists(public_path('public/hot'))
? "http://localhost:8080{$manifest[$file]}"
? "http://localhost:8080/public{$manifest[$file]}"
: $this->staticUrl("public{$manifest[$file]}");
}

@ -1 +1 @@
Subproject commit ecbad3cb179eaf8aa23f189bbfac54b4c571c1df
Subproject commit c3a4c680b97b078ab19ae8dc27d4f53c1df93840

View file

@ -9,6 +9,12 @@ mix.webpackConfig({
output: {
chunkFilename: mix.config.inProduction ? 'js/[name].[chunkhash].js' : 'js/[name].js',
publicPath: '/public/'
},
devServer: {
port: 8080,
proxy: {
'/': 'http://127.0.0.1:8000/'
}
}
})