Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Optimise bundle build and server side add compression #53

Merged
merged 2 commits into from
Feb 21, 2017

Conversation

msessa
Copy link
Collaborator

@msessa msessa commented Feb 17, 2017

This PR optimises the final build for the released docker images. It's triggered by npm run build.

Changes:
Enabling uglifyjs and disabling react devmode brings the final JS bundle size down from 3.7MB to 1.46MB.
Enabling server size compression in express brings it down to 723KB when downloaded by the browser.

Also changed a line in the Dockerfile to bring down the image size from 514MB to 352MB

Copy link
Owner

@djenriquez djenriquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Lucretius PTAL.

@djenriquez djenriquez merged commit 307be12 into djenriquez:master Feb 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants