Skip to content

Commit b929efa

Browse files
author
Moeen Basra
committed
fix the load issue with dymanic routes chunks by adding the base href on index
1 parent 3159712 commit b929efa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

resources/views/index.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
7+
<base href="/" />
88
<!-- CSRF Token -->
99
<meta name="csrf-token" content="{{ csrf_token() }}">
1010

webpack.mix.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ const path = require('path')
1212
*/
1313

1414
mix.webpackConfig({
15+
output: {
16+
chunkFilename: 'js/chunks/[name].js'
17+
},
1518
resolve: {
1619
alias : {
1720
'@': path.resolve(__dirname, 'resources/assets/js'),
1821
'public': path.resolve(__dirname, 'public'),
1922
'node': path.resolve(__dirname, 'node'),
20-
}
21-
}
23+
},
24+
},
2225
})
2326

2427
mix.react('resources/assets/js/app.js', 'public/js')

0 commit comments

Comments
 (0)