[RFC] Route Based Code Splitting #136
Labels
CLI
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
P0
Critical issue that should get addressed ASAP
RFC
Proposal and changes to workflows, architecture, APIs, etc
v0.6.0
Code Splitting + Markdown enhancements
Milestone
Type of Change
Summary
As it stands now it looks like Greenwood only creates on index.js. Would like to look into how we can possibly do route based code splitting, or I guess in the context of this project, template based code splitting?
Details
In particular this is a potential concern until larger projects can be tested because if ALL the content / code ends up in index.js then it will absolutely crush larger projects even though currently the Greenwood website scores well.
Ideally we should be able to configure this all through webpack.
https://webpack.js.org/plugins/split-chunks-plugin/
We should also want to handle / consider splitting out vendor code into it's own chunk too.
The text was updated successfully, but these errors were encountered: