@djforth/ap_sprites

This is a wrapper for spritesheet & svgstore for creating sprites

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@djforth/ap_sprites
005.0.04 years ago7 years agoMinified + gzip package size for @djforth/ap_sprites in KB

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"
}