Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !30411

terser: use 2 passes instead of the default 1

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed XhmikosR requested to merge master-xmr-terser-opts into master Mar 17, 2020
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 2

Apparently this yields a non-trivial size decrease (gzip):

File Before After Diff
bootstrap.bundle.min.js 22.38 kB 22.3 kB -0.08 kB (-0.36 %)
bootstrap.min.js 15.86 kB 15.83 kB -0.03 kB (-0.19 %)

I haven't tried passes > 2 yet, might be worth trying 3 or 5 too. I tried passes=5 and it results in the same savings as 3. Also, if we conclude this is fine, we might as well backport this to v4-dev.

Preview: https://deploy-preview-30411--twbs-bootstrap.netlify.com/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master-xmr-terser-opts