Skip to content

djforth/ap_sprites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

npm install @djforth/ap_sprites -g

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published