Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #293 from jtbr/jtbr-patch-2
Browse files Browse the repository at this point in the history
Adds explanation of windows workaround for svgmin
  • Loading branch information
jefflembeck committed Sep 1, 2015
2 parents 5ec7a9a + a770301 commit c0f7b8d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,12 @@ Here's an example:
```js
svgmin: {
dist: {
options: {
plugins: [
// Don't remove XML declaration (needed to avoid errors creating PNG on Win 7)
{ removeXMLProcInst: false }
]
},
files: [{
expand: true,
cwd: 'example/svgs',
Expand All @@ -649,13 +655,12 @@ grunticon: {
dest: "example/output"
}],
options: {
}
}
}
}
}
```
For a more extensive example, check out our Gruntfile and example
project.
The svgmin options section is only needed to avoid errors under windows and can be omitted for smaller svg files on other platforms. For a more extensive example, check out our Gruntfile example project.
### Serving compressed CSS
One of the great benefits to data uris is the ability to compress the images heavily via gzip compression. Be sure to enable gzip of CSS on your server, as it'll cut your icon transfer size greatly.
Expand Down

0 comments on commit c0f7b8d

Please sign in to comment.