gulp-javascript-stylus-sprite

0.0.4 • Public • Published
  • Make sprites from each of *.sprite directories under the root
  • Each sprite is a separate image
  • Stylus mixin and config with sprite positions are also supplied

Usage:

gulp.task('sprite', taskSprite({
  spritesSearchFsRoot: 'app',
  spritesWebRoot: '/img',
  spritesFsDir: '/path/to/site/www/img',
  styleFsDir: '/path/to/site/app/stylesheets'
}));
  • spritesSearchFsRoot - the source root, sprites are searched as spritesSearchFsRoot/**/dir.sprite.
  • spritesWebRoot: - path in CSS to sprite image will be /img/dir.png
  • spritesWebRoot - generated sprite images will be stored in this dir here.
  • styleFsDir - stylus file with sprite mixins and coords will be put here

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i gulp-javascript-stylus-sprite

Weekly Downloads

1

Version

0.0.4

License

CC-BY 3.0

Last publish

Collaborators

  • iliakan