gulp-stylus-sprites
gulp stylus sprite
Last updated 3 years ago by syuji-higa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-stylus-sprites 
SYNC missed versions from official npm registry.

gulp-stylus-sprites

import gulp from 'gulp';
import filter from 'gulp-filter';
import stylusSprites from 'gulp-stylus-sprites';

gulp.task('sprite', () => {
  const _imageDest  = 'htdocs';
  const _pngFilter  = filter(['**/*.png'], { restore: true });
  const _stylFilter = filter(['**/*.styl'], { restore: true });

  gulp.src('./sprite/**/*.png')
    .pipe(stylusSprites, {
      imagesSrcBase: `${ __dirname }/sprite`,
    })
    .pipe(_pngFilter)
    .pipe(gulp.dest(_imageDest))
    .pipe(_pngFilter.restore)
    .pipe(_stylFilter)
    .pipe(cache('stylus'))
    .pipe(gulp.dest(SPRITE_CSS_DEST))
    .pipe(_stylFilter.restore);
});

Current Tags

  • 0.1.6                                ...           latest (3 years ago)

33 Versions

  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.28                                ...           4 years ago
  • 0.0.27                                ...           5 years ago
  • 0.0.26                                ...           5 years ago
  • 0.0.25                                ...           5 years ago
  • 0.0.24                                ...           5 years ago
  • 0.0.23                                ...           5 years ago
  • 0.0.22                                ...           5 years ago
  • 0.0.21                                ...           5 years ago
  • 0.0.20                                ...           5 years ago
  • 0.0.19                                ...           5 years ago
  • 0.0.18                                ...           5 years ago
  • 0.0.17                                ...           5 years ago
  • 0.0.16                                ...           5 years ago
  • 0.0.15                                ...           5 years ago
  • 0.0.14                                ...           5 years ago
  • 0.0.13                                ...           5 years ago
  • 0.0.12                                ...           5 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.10                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |