Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C covid19india-react
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • 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
  • covid19india
  • covid19india-react
  • Merge requests
  • !1623

Added Rollup and configured it to minify maps file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/tannakartikey/map_minify into master Apr 28, 2020
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 6

Created by: tannakartikey

Description of PR The JSON files inside public/maps are not minified as they are easy to develop. But we should serve minified files on the production. The PR uses the non-minified version on development and the minified maps on the production.

Added a task compress_maps which calls Rollup. This task is added in build task so that the maps are compressed on each deploy.

The original size of the folder is 1.7M and the size of the compressed folder is 916K.

Relevant Issues

Checklist

  • Compiles and passes lint tests
  • Properly formatted
  • Tested on desktop
  • Tested on phone

Screenshots

Add relevant screenshots here

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/tannakartikey/map_minify