Slighlty reduce code ig
This commit is contained in:
parent
3e5c6d2325
commit
f839ee9c60
1 changed files with 1 additions and 2 deletions
|
@ -87,11 +87,10 @@ module.exports = {
|
||||||
var data = fs.readFileSync(filePath).toString()
|
var data = fs.readFileSync(filePath).toString()
|
||||||
if (req.path.includes(".css")) {
|
if (req.path.includes(".css")) {
|
||||||
res.setHeader("Content-Type", "text/css")
|
res.setHeader("Content-Type", "text/css")
|
||||||
res.send(minify.minify(data))
|
|
||||||
} else {
|
} else {
|
||||||
data = converter(data)
|
data = converter(data)
|
||||||
res.send(minify.minify(data))
|
|
||||||
}
|
}
|
||||||
|
res.send(minify.minify(data))
|
||||||
} else {
|
} else {
|
||||||
res.status(404).send(`
|
res.status(404).send(`
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="/style.css">
|
||||||
|
|
Loading…
Reference in a new issue