fix: properly load non-js config files in genCacheConfig (#3632)

close #3631
This commit is contained in:
Thorsten Lünborg
2019-03-27 16:08:54 +01:00
committed by Haoqun Jiang
parent 10296ff6a7
commit adac48db0d

View File

@@ -167,6 +167,9 @@ class PluginAPI {
return fs.readFileSync(absolutePath, 'utf-8')
}
}
else {
return fs.readFileSync(absolutePath, 'utf-8')
}
}
}
if (!Array.isArray(configFiles)) {