Slighlty reduce code ig

This commit is contained in:
Bingus_Violet 2024-02-13 10:08:52 -06:00
parent 3e5c6d2325
commit f839ee9c60

View file

@ -87,11 +87,10 @@ module.exports = {
var data = fs.readFileSync(filePath).toString()
if (req.path.includes(".css")) {
res.setHeader("Content-Type", "text/css")
res.send(minify.minify(data))
} else {
data = converter(data)
res.send(minify.minify(data))
}
res.send(minify.minify(data))
} else {
res.status(404).send(`
<link rel="stylesheet" href="/style.css">