Closed jamesgeorge007 closed 6 years ago
Hey @jamesgeorge007, thanks for the suggestion! We're currently working towards MERN v3.0.0 (https://github.com/Hashnode/mern-starter/issues/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? 🙏
@mattlubner Sure :+1:
code-splitting
is a great feature that can reduce load timingsIt 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.