Skip to content

Commit dadb717

Browse files
authored
Fix minimist build issue. (#45)
* Fix minimist build issue. * Fix yet another node-sass problem.
1 parent bc089df commit dadb717

6 files changed

Lines changed: 23846 additions & 1088 deletions

File tree

build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ async function doClientBuild(): Promise<void> {
770770
break;
771771
}
772772
catch (err) {
773-
if (i === 0 && (err.message ?? err.toString()).toLowerCase().includes('node sass does not yet support')) {
773+
if (i === 0 && /node?sass/i.test(err.message ?? err.toString())) {
774774
write(chalk.paleYellow(' ' + FAIL_MARK + ' (rebuilding node-sass) '));
775775
await monitorProcess(spawn('npm ', uid, prod ? ['rebuild', 'node-sass'] : [], opts), spin);
776776
}

0 commit comments

Comments
 (0)