0.0.11 • Published 3 years ago

svgsprite-file v0.0.11

Weekly downloads
33
License
MIT
Repository
github
Last release
3 years ago

SVG generator

npm install svgsprite-file --save

Very basic package to create an svg file from a folder of svgs. Intended to be used as part of an NPM scripts definition ie.

Example

{
    "scripts": {
        "generate-sprite": "svgsprite-file --src src/svg-icons/**/*.svg --sprite dist/svg-icons/svg-sprite.svg"
    }
}

Config

--src = Glob file path for svgs to include in sprite generation. eg. --src $npm_package_config_src/src/svg-icons/**/*.svg

--sprite = File path and name SVGs/svg sprite file to be generated into. eg. $npm_package_config_src/dist/svg-icons/svg-sprite.svg eg. $npm_package_config_theme/templates/partials/svg/symbol/svg-sprite.twig

--prepend-symbol-id = Optional; default: svg-

--css-class = Optional; default: svg-sprite

--hidden = Optional; adds inline style to the sprite of style="display:none"

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago