@djforth/ap_sprites

5.0.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @djforth/ap_sprites

Weekly Downloads

6

Version

5.0.0

License

MIT

Unpacked Size

10.9 kB

Total Files

17

Last publish

Collaborators

  • djforth