Fix deployment

This commit is contained in:
Sam Potts
2019-02-12 13:55:45 +11:00
parent dbd2136bac
commit 0189e90fce
20 changed files with 24 additions and 24 deletions

View File

@ -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);
}),
)