UI build not optimized for production

Bug #1688610 reported by Honza Pokorny
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Honza Pokorny

Bug Description

Our main javascript artifact is currently about 14MB in size. The source isn't optimized or minified. We should be able to apply tree shaking and uglifyjs via webpack.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/463824

Changed in tripleo:
assignee: nobody → Honza Pokorny (hpokorny)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ui (master)

Reviewed: https://review.openstack.org/463824
Committed: https://git.openstack.org/cgit/openstack/tripleo-ui/commit/?id=8d47410fe55f8021080823f05a972ef431f836e2
Submitter: Jenkins
Branch: master

commit 8d47410fe55f8021080823f05a972ef431f836e2
Author: Honza Pokorny <email address hidden>
Date: Wed May 10 13:41:16 2017 -0300

    Run minification and tree shaking on build

    "npm run build" now builds an artifact optimized for production use. The
    removes dead code, and minizes the result. The size of the bundle shrinks from
    about 14MB to 2MB.

    The previous build command is moved to "npm run build:dev".

    Change-Id: I21430f06049c4eeeb4a66c7143da8c2919fb5a24
    Closes-Bug: 1688610

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ui 7.2.0

This issue was fixed in the openstack/tripleo-ui 7.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.