This commit is contained in:
Rob Lourens
2019-02-19 18:05:48 -08:00
parent 9461eda194
commit aeaef41d51
2 changed files with 13 additions and 1 deletions

View File

@@ -298,6 +298,13 @@ export function minifyTask(src: string, sourceMapBaseUrl?: string): (cb: any) =>
cssFilter,
minifyCSS({ reduceIdents: false }),
cssFilter.restore,
(<any>sourcemaps).mapSources((sourcePath: string) => {
if (sourcePath === 'bootstrap-fork.js') {
return 'bootstrap-fork.orig.js';
}
return sourcePath;
}),
sourcemaps.write('./', {
sourceMappingURL,
sourceRoot: undefined,