0
我只是複製粘貼的入門任務:咕嘟咕嘟spritesmith「入門」的任務是什麼都不做
var gulp = require('gulp');
var spritesmith = require('gulp.spritesmith');
gulp.task('sprite', function() {
console.log("inside sprite");
var spriteData = gulp.src('/assets/images/*.jpg').pipe(spritesmith({
imgName: 'sprite.png',
cssName: 'sprite.css'
}));
return spriteData.pipe(gulp.dest('/assets/images/sprites'));
});
當我運行這個任務,我得到的迴應:
[19:42:03] Using gulpfile D:\Phase Zero\AfterMarket\Application\gulpfile.js
[19:42:03] Starting 'sprite'...
inside sprite
[19:42:03] Finished 'sprite' after 18 ms
但是,如果我去到'/ assets/images/sprites'爲空!
如何在此處進行調試?
謝謝。這是路徑問題 – jackOfAll