@djforth/ap_sprites
v5.0.0
Published
This is a wrapper for spritesheet & svgstore for creating sprites
Downloads
72
Readme
Create Sprites & SVG sprites
This is a wrapper for spritesheet & svgstore for creating sprites
It can be used however on it's own. To install run:
yarn add @djforth/ap_sprites
Now add the configuration details to your package.json like so (N.B. These are the defaults):
"sprites": {
"css": true,
"cssout": "app/javascript/stylesheets/sprites",
"input": "app/javascript/sprites",
"output": "app/javascript/images/sprites",
"ext": ["*.png", "*.gif"],
"scss": true,
"imageUrl": true,
"rootPath": "images/sprites",
"pngFolder": "pngs",
"svgFolder": "svgs",
"svgOutput": "app/assets/images"
}