From bc756270c719ba9d5f3bab6f1f28760d84f37386 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 10 Jan 2018 17:55:18 -0200 Subject: [PATCH] prefix all S3 files with '/' --- gulpfile.babel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 7831474..f9148f0 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -445,6 +445,10 @@ export const s3 = () => { "^.+$": "$&" } })) + // Make sure everything goes to the root '/' + .pipe($.rename(path => { + path.dirname = '/' + path.dirname + })) .pipe(parallelize(publisher.publish(), 100)) .pipe(publisher.sync()) // delete files in bucket that are not in local folder .pipe($.awspublish.reporter({