mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
small gulp change
This commit is contained in:
parent
c41aa52369
commit
9b71d0d06b
10
gulpfile.js
10
gulpfile.js
@ -83,7 +83,7 @@ gulp.task("index", function(){
|
|||||||
|
|
||||||
gulp.task('resize sm', function(done){
|
gulp.task('resize sm', function(done){
|
||||||
if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) {
|
if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) {
|
||||||
console.log("skip resizing sm");
|
console.log("skip generating sm images");
|
||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
return gulp.src('./assets/original_cards/**/*.png')
|
return gulp.src('./assets/original_cards/**/*.png')
|
||||||
@ -95,7 +95,7 @@ gulp.task('resize sm', function(done){
|
|||||||
|
|
||||||
gulp.task('resize lg', ["resize sm"], function(done){
|
gulp.task('resize lg', ["resize sm"], function(done){
|
||||||
if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")) {
|
if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")) {
|
||||||
console.log("skip resizing lg");
|
console.log("skip generating lg images");
|
||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
return gulp.src('./assets/original_cards/**/*.png')
|
return gulp.src('./assets/original_cards/**/*.png')
|
||||||
@ -106,10 +106,10 @@ gulp.task('resize lg', ["resize sm"], function(done){
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("sprite", ["resize lg"], function(){
|
gulp.task("sprite", ["resize lg"], function(){
|
||||||
/*if(fs.existsSync(__dirname + "/public/build/")) {
|
if(fs.existsSync(__dirname + "/public/build/cards-lg-monster.png")) {
|
||||||
console.log("skip resizing");
|
console.log("skip sprite generating");
|
||||||
return;
|
return;
|
||||||
}*/
|
}
|
||||||
sprity.src({
|
sprity.src({
|
||||||
src: "./assets/cards/**/*.png",
|
src: "./assets/cards/**/*.png",
|
||||||
style: "cards.css",
|
style: "cards.css",
|
||||||
|
Loading…
Reference in New Issue
Block a user