Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't differentSize work? #98

Open
SilencerWeb opened this issue Oct 8, 2017 · 0 comments
Open

Why doesn't differentSize work? #98

SilencerWeb opened this issue Oct 8, 2017 · 0 comments
Labels

Comments

@SilencerWeb
Copy link

SilencerWeb commented Oct 8, 2017

It just upload even if size is the same

var gulp = require("gulp"),
    plugins = require("gulp-load-plugins")(),
    ftp = require("vinyl-ftp");

gulp.task("deploy", function () {
  var conn = ftp.create({
    host: "",
    user: "",
    password: "",
    parallel: 10,
    log: plugins.util.log
  });

  var globs = [
    "dist/**"
  ];

  conn.rmdir("simple-boilerplate-testing/css", function() {});
  conn.rmdir("simple-boilerplate-testing/js", function() {});
      
  return gulp.src(globs, {buffer: false})

      .pipe(conn.differentSize("simple-boilerplate-testing/fonts"))
      .pipe(conn.differentSize("simple-boilerplate-testing/images"))
      .pipe(conn.differentSize("simple-boilerplate-testing/videos"))

      .pipe(conn.dest("/simple-boilerplate-testing"));
});
@morris morris added the bug label Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants