mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
build: do not fail build for a non-fatal error (#6017)
This commit is contained in:
@@ -68,7 +68,13 @@ if (!process.env.SKIP_WEB_BUILD) {
|
|||||||
content = content.replace(/# sourceMappingURL=(.*)\.map/g, (_, p1) => {
|
content = content.replace(/# sourceMappingURL=(.*)\.map/g, (_, p1) => {
|
||||||
return `# sourceMappingURL=assets://./${dir}/${p1}.map`;
|
return `# sourceMappingURL=assets://./${dir}/${p1}.map`;
|
||||||
});
|
});
|
||||||
await fs.writeFile(fullpath, content);
|
try {
|
||||||
|
await fs.writeFile(fullpath, content);
|
||||||
|
console.log('amended sourceMappingURL for', fullpath);
|
||||||
|
} catch (e) {
|
||||||
|
// do not crash the build
|
||||||
|
console.error('error writing file', fullpath, e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user