Fix CSS not being minified
This commit is contained in:
parent
2e7f80718a
commit
3e5c6d2325
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ 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(data)
|
res.send(minify.minify(data))
|
||||||
} else {
|
} else {
|
||||||
data = converter(data)
|
data = converter(data)
|
||||||
res.send(minify.minify(data))
|
res.send(minify.minify(data))
|
||||||
|
|
Loading…
Reference in a new issue