fix: Don't attempt to read from deleted CSS files (#765)
parent
6fa8861efd
commit
c5d20ab343
|
@ -1845,7 +1845,7 @@ class TW {
|
||||||
let isCssFile = minimatch(normalizedFilename, `**/${CSS_GLOB}`, {
|
let isCssFile = minimatch(normalizedFilename, `**/${CSS_GLOB}`, {
|
||||||
dot: true,
|
dot: true,
|
||||||
})
|
})
|
||||||
if (isCssFile) {
|
if (isCssFile && change.type !== FileChangeType.Deleted) {
|
||||||
let configPath = await getConfigFileFromCssFile(change.file)
|
let configPath = await getConfigFileFromCssFile(change.file)
|
||||||
if (
|
if (
|
||||||
cssFileConfigMap.has(normalizedFilename) &&
|
cssFileConfigMap.has(normalizedFilename) &&
|
||||||
|
|
Loading…
Reference in New Issue