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 code-splitting feature as required #38

Closed
jamesgeorge007 opened this issue Oct 17, 2018 · 2 comments
Closed

Add code-splitting feature as required #38

jamesgeorge007 opened this issue Oct 17, 2018 · 2 comments

Comments

@jamesgeorge007
Copy link

jamesgeorge007 commented Oct 17, 2018

code-splitting is a great feature that can reduce load timings

Lazy loading is a great way to optimize your site, and it does that by splitting your code at logical breakpoints, and then loading it once the user has done something that requires, or will require, a new block of code.

It is done by webpack behind the scenes, separating them into multiple files.

So the idea basically is to have a separate command in which the user can specify which component to be imported in the code-splitting way within the routes file. If the user specifies a component that doesn't exist he/she should be prompted with a suitable message.

@mattlubner
Copy link

Hey @jamesgeorge007, thanks for the suggestion! We're currently working towards MERN v3.0.0 (Hashnode/mern-starter#344), but this is something we'd definitely like to implement (not 100% sure if we'd include it in 3.0.0, but if not, then soon thereafter).

Could you close this issue on the mern-cli repo and recreate it against mern-starter instead? 🙏

@jamesgeorge007
Copy link
Author

@mattlubner Sure 👍

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

No branches or pull requests

2 participants