judo-heroes-2
judo-heroes-2 copied to clipboard
How we can setup code-splitting with this project
Hi Mammino,
We are using your repository for one of our project and we setup all the things easily with that. But we are not getting that how we can setup code-splitting or PRPL with your project.
We are trying following thing at routes but not able to load.
`<Layout> <Switch>
<Route path="/"
getComponent={(location, callback) => {
require.ensure([], require => {
callback(null, require('./IndexPage').default)
}, 'IndexPage')
}} />
`
So can you please help us on that.
Thanks, Manish
Hi @manishaggarwal94,
To be honest I haven't experimented with this webpack feature yet. Any example / PR / suggestion is accepted.