grunt-svgstore
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "grunt-svgstore", | ||
"description": "Merge SVGs from a folder.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/FWeinb/grunt-svgstore", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -23,2 +23,7 @@ # grunt-svgstore [![NPM version](https://badge.fury.io/js/grunt-svgstore.svg)](http://badge.fury.io/js/grunt-svgstore) [![Build Status](https://travis-ci.org/FWeinb/grunt-svgstore.svg?branch=master)](https://travis-ci.org/FWeinb/grunt-svgstore) | ||
## Screencast | ||
Chris made a screencast, using `grunt-svgstore` in a real project, you can find it [here](http://css-tricks.com/video-screencasts/screencast-134-tour-site-progress-built-jekyll-grunt-sass-svg-system/). | ||
## The "svgstore" task | ||
@@ -147,2 +152,6 @@ | ||
#### 0.3.2 | ||
* Move `linearGradient`, `radialGradient` and `pattern` elements out of the `<symbol>` tag. (See [#49](https://github.com/FWeinb/grunt-svgstore/issues/49)) | ||
#### 0.3.1 | ||
@@ -149,0 +158,0 @@ |
@@ -203,2 +203,13 @@ /* | ||
// Extract gradients and pattern | ||
var addToDefs = function(){ | ||
var $elem = $res(this); | ||
$resultDefs.append($elem.toString()); | ||
$elem.remove(); | ||
}; | ||
$res('linearGradient').each(addToDefs); | ||
$res('radialGradient').each(addToDefs); | ||
$res('pattern').each(addToDefs); | ||
// Append <symbol> to resulting SVG | ||
@@ -205,0 +216,0 @@ $resultSvg.append($res.html()); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
114009
511
215