@djforth/ap_sprites

This is a wrapper for spritesheet & svgstore for creating sprites

Stats

StarsIssuesVersionUpdatedCreatedSize
@djforth/ap_sprites
005.0.03 years ago6 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"
  }

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.