From c39b2736c29ffef724b4274cd6d36d16db102cc3 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sat, 20 Apr 2024 06:50:20 -0500 Subject: [PATCH] How long has minification been broken? --- .../fonts/rubik-v28-latin-regular.woff2 | Bin index.js | 3 +-- pageUpdater.js | 2 ++ static/index.html | 6 +++--- static/style.css | 4 ++++ 5 files changed, 10 insertions(+), 5 deletions(-) rename {static => assets}/fonts/rubik-v28-latin-regular.woff2 (100%) diff --git a/static/fonts/rubik-v28-latin-regular.woff2 b/assets/fonts/rubik-v28-latin-regular.woff2 similarity index 100% rename from static/fonts/rubik-v28-latin-regular.woff2 rename to assets/fonts/rubik-v28-latin-regular.woff2 diff --git a/index.js b/index.js index d4d1b6b..24225d0 100644 --- a/index.js +++ b/index.js @@ -16,10 +16,9 @@ app.listen(PORT, () => { }) var cachePath = path.join(__dirname, 'cached') -var fontPath = path.join(staticpath, "fonts") 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("/imgs", express.static(path.join(assetPath, "Images"))) app.use("/snds", express.static(path.join(assetPath, "Sounds"))) diff --git a/pageUpdater.js b/pageUpdater.js index c21c283..0aea0c4 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -146,6 +146,8 @@ module.exports = { data = converter(data, req.query) } + data = minify.minify(data) + res.send(data) } else { res.status(404).send(` diff --git a/static/index.html b/static/index.html index e471132..138ff2a 100644 --- a/static/index.html +++ b/static/index.html @@ -47,7 +47,7 @@
-

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.

+

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.