1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +01:00

Fixed watch mode aborting on CSS error

This commit is contained in:
squidfunk 2021-02-27 18:21:02 +01:00
parent 36f13cb0af
commit c13012da3d

View File

@ -25,6 +25,7 @@ import { build as esbuild } from "esbuild"
import * as path from "path"
import postcss from "postcss"
import {
NEVER,
Observable,
concat,
defer,
@ -32,6 +33,7 @@ import {
of
} from "rxjs"
import {
catchError,
endWith,
ignoreElements,
switchMap
@ -130,6 +132,10 @@ export function transformStyle(
}
})
),
catchError(err => {
console.log(err.formatted || err.message)
return NEVER
}),
switchMap(({ css, map }) => {
const file = digest(options.to, css)
return concat(