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

Make JS bundle size smaller (target: <1 MB) #2

Closed
SamLau95 opened this issue Dec 21, 2017 · 1 comment
Closed

Make JS bundle size smaller (target: <1 MB) #2

SamLau95 opened this issue Dec 21, 2017 · 1 comment
Assignees

Comments

@SamLau95
Copy link
Owner

SamLau95 commented Dec 21, 2017

The JS bundle is currently 2.7 MB minified.

We'd ideally want to cut this down to <1 MB minified.

Use https://github.com/webpack-contrib/webpack-bundle-analyzer to analyze size and cut out packages we don't need.

@SamLau95 SamLau95 self-assigned this Dec 21, 2017
@SamLau95
Copy link
Owner Author

SamLau95 commented Feb 2, 2018

Done in 76a8eeb .

For future reference:

To regenerate the bundle analyzer, run

lerna exec --scope nbinteract --stream -- webpack --mode development

Then open the built/report.html file.

@SamLau95 SamLau95 closed this as completed Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant