Skip to content

A rough pass at cutting initial bundle up into dynamic loadable route…#9

Open
butlersrepos wants to merge 1 commit intocbonoz:masterfrom
butlersrepos:chunk-splits-and-small-optimizes
Open

A rough pass at cutting initial bundle up into dynamic loadable route…#9
butlersrepos wants to merge 1 commit intocbonoz:masterfrom
butlersrepos:chunk-splits-and-small-optimizes

Conversation

@butlersrepos
Copy link
Copy Markdown

…s, removed or split some large dependencies. Little done with regards to actual app rendering yet.

…s, removed or split some large dependencies. Little done with regards to actual app rendering yet.
@butlersrepos
Copy link
Copy Markdown
Author

"wants to merge" is strong language, just creating a PR for visibility 👍

@butlersrepos
Copy link
Copy Markdown
Author

butlersrepos commented Mar 1, 2018

screen shot 2018-02-28 at 9 01 09 pm

Code split bundles after these changes.

Future targets: Defer loading of youtube js (400kb), optimize css add-ins by trimming unneeded bootstrap and font-awesome source,

Current bundle analysis - https://atom-subway.glitch.me/

@cbonoz
Copy link
Copy Markdown
Owner

cbonoz commented Mar 1, 2018

Hey, thanks for the PR @butlersrepos . You familiar with the create-react-app framework? Would be cool if we could optimize this without having to eject the project defaults, but I'm open to other suggestion if you have it as well.

Looks promising.

@butlersrepos
Copy link
Copy Markdown
Author

butlersrepos commented Mar 1, 2018 via email

@cbonoz
Copy link
Copy Markdown
Owner

cbonoz commented Mar 2, 2018

Eject is required to modify these webpack scripts no? Otherwise I believe yarn build (which runs react-scripts) would run these instead.

image

@butlersrepos
Copy link
Copy Markdown
Author

butlersrepos commented Mar 6, 2018 via email

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