grunt-svgstore
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "grunt-svgstore", | ||
"description": "Merge SVGs from a folder.", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "https://github.com/FWeinb/grunt-svgstore", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -9,3 +9,3 @@ # 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) | ||
## Getting Started | ||
This plugin requires Grunt `~0.4.2` | ||
This plugin requires Grunt `~0.4.5` | ||
@@ -131,2 +131,5 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
#### 0.2.5 | ||
* To generate the id from the filename is now used as a title. (Fix [#33](https://github.com/FWeinb/grunt-svgstore/issues/33)) | ||
#### 0.2.4 | ||
@@ -133,0 +136,0 @@ * Added `options.symbol` to add attributes to generated `<symbol>`s ([#30](https://github.com/FWeinb/grunt-svgstore/pull/30)) |
@@ -138,4 +138,6 @@ /* | ||
var id = convertNameToId(filename); | ||
// If there is no title use the filename | ||
title = title || filename; | ||
title = title || id; | ||
@@ -154,3 +156,3 @@ var resultStr = '<symbol' + symbolAttrs + '>' + '<title>' + title + '</title>'; | ||
var graphicId = options.prefix + convertNameToId(filename); | ||
var graphicId = options.prefix + id; | ||
// Add ID to the first Element | ||
@@ -157,0 +159,0 @@ $res('*').first().attr('id', graphicId); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99297
368
170