Skip to content

Optimize SVGs#723

Merged
msecret merged 1 commit into
18f-pages-stagingfrom
optimize-svg
Oct 2, 2015
Merged

Optimize SVGs#723
msecret merged 1 commit into
18f-pages-stagingfrom
optimize-svg

Conversation

@shawnbot

Copy link
Copy Markdown
Contributor

This PR optimizes all of the non-font SVGs using svgo.

@shawnbot shawnbot mentioned this pull request Sep 24, 2015
@carodew

carodew commented Oct 1, 2015

Copy link
Copy Markdown
Contributor

Hey @shawnbot ! When this is no longer WIP can you re-add the to-be-triaged tag?

@shawnbot

shawnbot commented Oct 1, 2015

Copy link
Copy Markdown
Contributor Author

Thanks, @carodew. Hey @msecret, what do you think?

@shawnbot

shawnbot commented Oct 2, 2015

Copy link
Copy Markdown
Contributor Author

OK, so I'm going to rewind this back to just having optimized SVGs and I'll let @msecret and @jeremiak tackle this in #767.

@shawnbot shawnbot changed the title [WIP] Optimize SVGs Optimize SVGs Oct 2, 2015
@shawnbot

shawnbot commented Oct 2, 2015

Copy link
Copy Markdown
Contributor Author

@msecret I've still got the commits (one each for the Makefile and the package.json) locally, so let me know if you want one or the other.

@msecret

msecret commented Oct 2, 2015

Copy link
Copy Markdown
Contributor

This looks good. Do we need a process documented for when we add new SVGs?

Actually now that I think about it, I think we'd eventually move SVG optimization into the build process. It's something I've done with Peace corps before

msecret pushed a commit that referenced this pull request Oct 2, 2015
@msecret msecret merged commit a5bf1e8 into 18f-pages-staging Oct 2, 2015
@maya maya deleted the optimize-svg branch October 2, 2015 22:57
@shawnbot

shawnbot commented Oct 5, 2015

Copy link
Copy Markdown
Contributor Author

Yep, automating it should definitely be a thing. The Makefile looked like:

bin ?= ./node_modules/.bin
svgo ?= $(bin)/svgo

all: \
    optimize-svg

optimize-svg:
    $(svgo) -f assets/img
    $(svgo) -f assets/img/social-icons/svg

.PHONY: optimize-svg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants