Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manishaggarwal94 opened this issue Jul 7, 2017 · 1 comment
Open

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

manishaggarwal94 opened this issue Jul 7, 2017 · 1 comment

Comments

@manishaggarwal94
Copy link

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.

`

  <Route path="/" 
    getComponent={(location, callback) => {
      require.ensure([], require => {
        callback(null, require('./IndexPage').default)
      }, 'IndexPage')
    }} />
`

So can you please help us on that.

Thanks,
Manish

@lmammino
Copy link
Owner

Hi @manishaggarwal94,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants