Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Code splitting via routes #643

Closed
DavidWells opened this issue Aug 22, 2016 · 3 comments
Closed

Code splitting via routes #643

DavidWells opened this issue Aug 22, 2016 · 3 comments

Comments

@DavidWells
Copy link
Contributor

Another future perf question ;)

Is it possible to override the default single script phenomic.js into a chunked build based on routes (and/or layout components)?

https://webpack.github.io/docs/code-splitting.html

@MoOx
Copy link
Owner

MoOx commented Aug 22, 2016

I didn't try that yet, but I guess there is nothing to do from Phenomic side, as webpack will handle require.ensure/System.import automatically and create more chunks (in theory).
You may want to check react-router docs as well https://github.com/reactjs/react-router/blob/master/docs/guides/DynamicRouting.md#dynamic-routing

@bloodyowl
Copy link
Contributor

Going to be fixed with #925 (moving to user-land)

@MoOx
Copy link
Owner

MoOx commented May 11, 2017

User land thing with v1.

@MoOx MoOx closed this as completed May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants