Commit ad48cf05 by 黄秀兰

gulp sprites add imgPath

parent 1ab3646d
Pipeline #935 skipped in 0 seconds
dist/img/icon.png

154 KB | W: | H:

dist/img/icon.png

154 KB | W: | H:

dist/img/icon.png
dist/img/icon.png
dist/img/icon.png
dist/img/icon.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -67,7 +67,7 @@ gulp.task('sprites', function () {
return gulp.src(path)
.pipe(plugins.spritesmith({
'imgName': name + '.png',
'pathToSpriteSheetFromCSS': '../img/'+name + '.png',
'imgPath': '../img/' + name + '.png',
'cssName': name + '.css'
}));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment