aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 2a3124f4..75d14c61 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -337,7 +337,7 @@ if (Object.keys(credentials).includes('aws') && Object.keys(credentials).include
.pipe(
replace(
/sourceMappingURL=([\w-?.]+)/,
- (match, p1) => `sourceMappingURL=${p1.replace(minSuffix, '')}`,
+ (match, filename) => `sourceMappingURL=${filename.replace(minSuffix, '')}`,
),
)
.pipe(
@@ -360,7 +360,7 @@ if (Object.keys(credentials).includes('aws') && Object.keys(credentials).include
.pipe(
through.obj((file, enc, cb) => {
const filename = file.path.split('/').pop();
- list.push(`${versionPath}/${filename}`);
+ list.push(`${versionPath}/${filename.replace(minSuffix, '')}`);
cb(null);
}),
)