lmammino / judo-heroes-2

Universal Javascript sample application with React Router 4 and Express 5 (Enhanced version of https://github.com/lmammino/judo-heroes)
MIT License
177 stars 48 forks source link

How we can setup code-splitting with this project #11

Open manishaggarwal94 opened 7 years ago

manishaggarwal94 commented 7 years ago

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.

`

{ require.ensure([], require => { callback(null, require('./IndexPage').default) }, 'IndexPage') }} />

`

So can you please help us on that.

Thanks, Manish

lmammino commented 7 years ago

Hi @manishaggarwal94,

To be honest I haven't experimented with this webpack feature yet. Any example / PR / suggestion is accepted.