dg-sprity-sass
This is a fork of sprity-sass
Requirements
- sprity version >= 1.0
Install
Install with npm
npm install sprity dg-sprity-sass --save
If you want to use sprity-sass
with the command line interface of sprity
install it globally.
npm install sprity dg-sprity-sass -g
Options
- style-type: Eighter scss or sass. Defaults to scss.
Usage
On commandline:
sprity out/ src/*.png -s style.scss -p sass --style-type scss
In JavaScript:
var sprite = ;sprite;
scss usage example
; // the generated style file (sprite.scss) // camera icon (camera.png in src directory) .icon-camera // cart icon (cart.png in src directory) .icon-cart
sass usage example
// camera icon (camera.png in src directory) // cart icon (cart.png in src directory)
More
See sprity documentation