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

Add home route to client.js to reduce size of all route chunks #1515

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

jorrit
Copy link

@jorrit jorrit commented Jan 23, 2018

Fixes #1514

@@ -17,7 +21,7 @@ const routes = {
children: [
{
path: '',
load: () => import(/* webpackChunkName: 'home' */ './home'),
load: home,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use action: home or /* webpackMode: "eager" */?

@jorrit jorrit force-pushed the homerouteinclientbundle branch from 8a621a8 to 007532a Compare January 24, 2018 05:52
@jorrit
Copy link
Author

jorrit commented Jan 24, 2018

The commit has been updated, thanks for the reference to webpackMode!

@frenzzy frenzzy merged commit c069def into kriasoft:master Jan 24, 2018
@frenzzy
Copy link
Member

frenzzy commented Jan 24, 2018

Thank you!

@jorrit jorrit deleted the homerouteinclientbundle branch January 24, 2018 10:10
@jorrit
Copy link
Author

jorrit commented Jan 24, 2018

Thank you too

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

Successfully merging this pull request may close these issues.

2 participants