selaux / node-sprite-generator

Generates image sprites and their spritesheets (css, stylus, sass or less) from sets of images. Supports retina sprites. Provides express middleware and grunt task.
MIT License
191 stars 39 forks source link

Hack to properly render custom stylesheet template #70

Open knightcode opened 7 years ago

knightcode commented 7 years ago

export the readTemplatedStylesheetFromFile function from the default templates and use it in nsg.js instead of getTemplatedStylesheet

A better solution would move the function elsewhere, and I leave that to you.

Please, let me know when the next version is released!!