gulp-usemin icon indicating copy to clipboard operation
gulp-usemin copied to clipboard

outputRelativePath gets truncated

Open shinkathe opened this issue 9 years ago • 0 comments

An outputrelativePath of ../../../../../ will be truncated to ../../../, so anything more than 3 levels won't work.

Does not seem like a problem with usemin, but probably with gulp-concat.

You may observe this behaviour if you add a console.info(file) to this bit in pipeline.js while having an outputrelativePath set to say: ../../../../../

  tasks.push(through.obj(function(file, enc, streamCallback) {
    streamCallback(null, file);
    push(file);
    console.info(file); // Note how outputrelativePath loses depth before this
  }));

shinkathe avatar Oct 22 '15 15:10 shinkathe