ryelle / WP-Dashboard-SVG

A demo of using an SVG sprite for the WordPress admin icons.
http://ryelle.github.io/WP-Dashboard-SVG/
21 stars 4 forks source link

Gruntfile: added svgmin and grunticon and literally a bazillion pngs #3

Closed MichaelArestad closed 9 years ago

MichaelArestad commented 9 years ago

Which turns out to be kind of a messy diff. :)

A few things are happening when you run grunt.

  1. svgmin creates two folders of minified files: .tmp/ and .tmp-fallbacks/. tmp/ is simply a minified set. tmp-fallbacks has color variables appended to the file name for grunticon to generate colorful fallbacks. 2.svgstore puts all of those into a single file (I changed it to dashicons.svg).
  2. grunticon generates png fallbacks in three colors and a icons/preview.html file to check out all the icons at once. The template that generates that file is icons/preview-template.hbs. It also generates a bunch of CSS files with SVG data URIs and PNG data URIs.

I also gitignored the .tmp folders.

image