How long has minification been broken?
This commit is contained in:
parent
df49e37654
commit
c39b2736c2
5 changed files with 10 additions and 5 deletions
3
index.js
3
index.js
|
@ -16,10 +16,9 @@ app.listen(PORT, () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
var cachePath = path.join(__dirname, 'cached')
|
var cachePath = path.join(__dirname, 'cached')
|
||||||
var fontPath = path.join(staticpath, "fonts")
|
|
||||||
var assetPath = path.join(__dirname, "assets")
|
var assetPath = path.join(__dirname, "assets")
|
||||||
|
|
||||||
app.use("/fonts", express.static(fontPath))
|
app.use("/fonts", express.static(path.join(assetPath, "fonts")))
|
||||||
app.use("/cached", express.static(cachePath))
|
app.use("/cached", express.static(cachePath))
|
||||||
app.use("/imgs", express.static(path.join(assetPath, "Images")))
|
app.use("/imgs", express.static(path.join(assetPath, "Images")))
|
||||||
app.use("/snds", express.static(path.join(assetPath, "Sounds")))
|
app.use("/snds", express.static(path.join(assetPath, "Sounds")))
|
||||||
|
|
|
@ -146,6 +146,8 @@ module.exports = {
|
||||||
data = converter(data, req.query)
|
data = converter(data, req.query)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data = minify.minify(data)
|
||||||
|
|
||||||
res.send(data)
|
res.send(data)
|
||||||
} else {
|
} else {
|
||||||
res.status(404).send(`
|
res.status(404).send(`
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
<p style="padding: 10px;">Hi! I'm Violet, a 15 year old web and game developer. I aspire to make server-sided dynamic websites, with no Javascript required! I'm currently making games in the Godot Engine, and my dynamic sites in NodeJS.</p>
|
<p style="padding: 10px;">Hi! I'm Violet, a 15 year old web and game developer. I make server-sided dynamic websites, with no Javascript required! I'm currently making games in the Godot Engine, and my dynamic sites in NodeJS.</p>
|
||||||
<div class="linkContainer">
|
<div class="linkContainer">
|
||||||
<a class="chip" href="./socials/">Socials</a>
|
<a class="chip" href="./socials/">Socials</a>
|
||||||
<a class="chip" href="https://blog.violets-purgatory.dev">Blog</a>
|
<a class="chip" href="https://blog.violets-purgatory.dev">Blog</a>
|
||||||
|
@ -77,8 +77,8 @@
|
||||||
{PATH_SOCIALS}
|
{PATH_SOCIALS}
|
||||||
<p class="note">Please note I am extremely unhinged and gay on Fedi, I don't use Github, and I barely understand Docker.</p>
|
<p class="note">Please note I am extremely unhinged and gay on Fedi, I don't use Github, and I barely understand Docker.</p>
|
||||||
<br>
|
<br>
|
||||||
<h1>FAQ:</h1>
|
<!-- <h1>FAQ:</h1>
|
||||||
{PATH_FAQ}
|
{PATH_FAQ} -->
|
||||||
<p>{WEATHER_TEXT}</p>
|
<p>{WEATHER_TEXT}</p>
|
||||||
<br>
|
<br>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -61,6 +61,10 @@ html {
|
||||||
background-attachment: local;
|
background-attachment: local;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding: 2.5%;
|
padding: 2.5%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue