laoshu133 / grunt-css-sprite

A grunt plugin to help front engineer creating css sprite.
MIT License
65 stars 29 forks source link

怎么不支持less #29

Open grassmu opened 9 years ago

grassmu commented 9 years ago

我的目录结构 |-css |-html |-slice css目录下存放的是less文件,现在我在gulp中,使用如下方法先编译less,再进行雪碧图 gulp.src("./css/*.less") .pipe(less()) .pipe(sprite({ imagepath: "slice/", spritedest: "sprite/", spritepath: "../sprite/", spritestamp: true, cssstamp: true })) .pipe(gulp.dest("./release")); 它会报错 xxxx\gulptest\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\decorators\unhandledRejection.js:80 throw e; ^ Error: no writecb in Transform class

麻烦你看一下

laoshu133 commented 9 years ago

抱歉,由于早期架构问题,对 gulp 支持不好,建议暂时先拆分成两个任务,gulp-css-spritesmith 目前只支持直接 src 传入

grassmu commented 9 years ago

希望改进一下哈,这样子增加了很多操作,耗时也增加了