Fallback when no proper data type is found, Teto favicon
This commit is contained in:
parent
aea31f2ea1
commit
65dde5eb7f
3 changed files with 4 additions and 0 deletions
|
@ -507,6 +507,8 @@ module.exports = {
|
|||
data = new cssMinifier().minify(data).styles
|
||||
} else if (filePath.includes(".js")) {
|
||||
data = javascriptCache[filePath]
|
||||
} else {
|
||||
data = fs.readFileSync(filePath)
|
||||
}
|
||||
|
||||
res.send(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue