mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
reverse gulp...
This commit is contained in:
parent
c127f1a8df
commit
00529ffd5c
19
gulpfile.js
19
gulpfile.js
@ -81,12 +81,29 @@ gulp.task("index", function(){
|
||||
})
|
||||
|
||||
gulp.task('resize sm', function(done){
|
||||
|
||||
if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) {
|
||||
console.log("skip generating sm images");
|
||||
return done();
|
||||
}
|
||||
return gulp.src('./assets/original_cards/**/*.png')
|
||||
.pipe(gm(function(gmfile){
|
||||
return gmfile.resize(null, 120);
|
||||
}))
|
||||
.pipe(imagemin())
|
||||
.pipe(gulp.dest('./assets/cards/sm/'));
|
||||
});
|
||||
|
||||
gulp.task('resize lg', ["resize sm"], function(done){
|
||||
if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")) {
|
||||
console.log("skip generating lg images");
|
||||
return done();
|
||||
}
|
||||
return gulp.src('./assets/original_cards/**/*.png')
|
||||
.pipe(gm(function(gmfile){
|
||||
return gmfile.resize(null, 450);
|
||||
}))
|
||||
.pipe(imagemin())
|
||||
.pipe(gulp.dest('./assets/cards/lg/'));
|
||||
});
|
||||
|
||||
gulp.task("sprite", ["resize lg"], function(){
|
||||
|
Loading…
Reference in New Issue
Block a user