- Support Grunt 1+ and Node 6+
- Use eslint
- Added the
setUniqueIds
andremoveEmptyGroupElements
options for ability to choose whether or not to set unique ids and remove empty elements - Automatically fix
viewbox
as well asviewBox
on source items - Added the
allowDuplicateItems
option to allow duplicate item names - Make
<desc>
available in custom templates
- Added: Preserving of strokes (in addition to fills).
- Added: CHANGELOG.md to document changes between releases.
- Updated: Preserving of fills.
- Updated: dependencies.
- Added the
includeTitleElement
andpreserveDescElement
options for more control of the accessible names for icons (See #83) - Added the
externalDefs
option to include a custom set of shared<defs>
(like gradients) across multiple svgs. (See #81)
- Introducing the
preserve--
prefix for attributes to force these attributes in the result svg (See #71)
- Generate fixed sized reference based copies of symbols (See #58)
- Add a way to inherit the viewbox form the source svg (See #66)
- Expose
convertNameToId
option to customize how ids are derived from file names. (See #68) - Changed the way ids are generated by using the result of
convertNameToId
to prefix each id. (See #50)
- Preserve currentColor in
fill
attribute even ifcleanup
is set totrue
. (See #63)
- Add the ability to use
handlebars
templates inoptions.includedemo
.
- Fixed an issue with SMIL animations inside a svg symbole (See #56)
- Update to cheerio
0.17.0
- Fix broken id references between nested
<symbol>
tags. (See #50)
- Move
linearGradient
,radialGradient
andpattern
elements out of the<symbol>
tag. (See #49)
- Fix removal of unreferenced IDs (See #46)
- Changed the way ID are collected;
unreferenced IDs are removed now in order to save space.(#40) - Changed the behavior of the 'cleanup'-option (introduced in 0.2.6). Apart from true / false, the value of this property can now be an array of attributes. All attributes in the array are removed from all elements in the SVG. (#41)
- Added an option 'cleanupdefs' (default: false). When set to false, no cleanup
is performed on the
<defs>
element. (#41) - Empty
<g>
elements are removed since they have no effect in a document. (#42)
Thanks to Frank3K for the PRs
- Don't generate IDs that start with a number by prefixing them with
svgstore
. (Thanks to #38)
- Add
options.clean
to remove inline styles from source svgs. (Thanks to ain) - Reformat source to use 2 spaces for indentation (Fix #36)
- To generate the id from the filename is now used as a title. (Fix #33)
- Added
options.symbol
to add attributes to generated<symbol>
s (#30) - To generate the id from the filename the name is now cut right before the
first dot.
name.min.svg
becomesname
. (Fixes #29)
- Fixed lower case
viewBox
in outputted svg (fix #26)
- Fixed a bug where self-closing elements where nested.
- Move
<symbol>
-tag out of<defs>
-tag (see the spec) - Only create
<defs>
-tag if needed (e.g.<linearGradient>
is used)
- Use a
<symbol>
-tag for representing icons (See TxHawks Comment.) - Write the
viewBox
attribute to the<symbol>
-tag, - Include
title
anddesc
elements in the generated svg for each<symbol>
- use 'filename' as a fallback for
title
- Fix issue #1
- Fixed issue with referencing ids with
url()
(fix #12)
- Added
options.formatting
to format svg via js-beautify
- Fixed npm dependencies
- Inital release