Automattic / Automattic/Picard

Add minify/uglify options to Gulp config

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
[Type] Enhancement
Dominant language
CSS
Stars
622
Forks
108
PR merge metrics
No merged PRs in 30d

Description

The compiled `picard.js` file currently equates to about 691KB uncompressed. When compressed with something like `uglify`, it comes in at about 260KB.

Of course, in any production environment, we would want it compressed. It would be super to have some additional `gulp` commands that allow you to build for production.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Gulp config and the existing commands that build the compiled picard.js file; compare the current output with a compressed production build. Done means production-oriented Gulp commands can generate a compressed artifact, with the result checked against the reported size reduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.