Open Bug 1220483 Opened 9 years ago Updated 2 years ago

Set up a command line tool to clean our SVG files

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: ntim, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Something like https://github.com/svg/svgo would be nice.
Summary: Set up a command line tool to clean our SVGs → Set up a command line tool to clean our SVG files
Component: Build Config → mach
Product: Firefox → Core
Attached patch Proof of concept (obsolete) (deleted) — Splinter Review
This adds an SVGO command, the code is based on the eslint one. TODO: - Make sure it adds a license header to SVGO files (it currently strips it out) - Make the tool use 2 space indent instead of 4 space indent
Attachment #8681717 - Attachment is patch: true
Attached patch Proof of concept (deleted) — Splinter Review
Attachment #8681717 - Attachment is obsolete: true
(In reply to Tim Nguyen :ntim from comment #1) > - Make the tool use 2 space indent instead of 4 space indent SVGO has since added: --indent=2 as option. What we need is: - License header - Configure SVGO to not change IDs to a,b,c,d,e,f,... - Configure SVGO to not remove the SVG title
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: