
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
sprite-brunch
Advanced tools
Sprite Generator for brunch.
It uses Spritesmith and spritesheet-templates to generate sprites in language agnostic styles.
npm install --save sprite-brunch
If using Less, SASS, etc., sprite-brunch should be ordered before their brunch compilers in package.json so that sprite styles compile before other styles.
To improve speed, consider an engine such as canvassmith or gmsmith. Check out the Spritesmith website for details.
sprites: {
path: 'app/assets/images/sprites', // Path to your sprites folder
destCSS: 'app/css/sprites.css', // Destination sass/less/stylus files
destSprites: 'app/assets' // Destination of generated sprite files
cssFormat: 'css', // less, sass, scss, stylus
algorithm: 'top-down', // algorithm: top-down, left-right, diagonal (\ format), alt-diagonal
engine: 'pixelsmith', // pixelsmith, canvassmith, gmsmith
imgOpts: {
format: 'auto', // auto, jpg, png (If auto is used and there is png and jpg in a folder the sprite will be jpg)
quality: 90 // Quality of the output image
}
}
It expects the following folder structure and uses the folder name as first value and the filename as the second
app/assets/images/sprites/icons
icona.png
iconb.png
app/assets/images/sprites/backgrounds
For CSS languages/preprocessors, the plugin only generates the variables and the mixins. The mixins have to be called from another stylesheet to be included in your project.
.icon-name {
.sprite(@icon-name);
}
If you want to use git version of plugin, add
"sprite-brunch": "git+ssh://git@github.com:aedryan/sprite-brunch.git".
FAQs
Language agnostic sprite generator for brunch
We found that sprite-brunch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.