Skip to content

Commit

Permalink
fix the load issue with dymanic routes chunks by adding the base href…
Browse files Browse the repository at this point in the history
… on index
  • Loading branch information
Moeen Basra committed Jan 21, 2018
1 parent 3159712 commit b929efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<base href="/" />
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

Expand Down
7 changes: 5 additions & 2 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ const path = require('path')
*/

mix.webpackConfig({
output: {
chunkFilename: 'js/chunks/[name].js'
},
resolve: {
alias : {
'@': path.resolve(__dirname, 'resources/assets/js'),
'public': path.resolve(__dirname, 'public'),
'node': path.resolve(__dirname, 'node'),
}
}
},
},
})

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

0 comments on commit b929efa

Please sign in to comment.