From 82c39f90a6015828fa14373a73294e1a989bbb30 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 9 Jun 2024 01:02:08 -0300 Subject: [PATCH] Gzip loaders, main scripts --- nanoc/rules/index.rules | 2 ++ nanoc/rules/random.rules | 2 ++ nanoc/rules/redirect.rules | 2 ++ nanoc/rules/stream.rules | 2 ++ 4 files changed, 8 insertions(+) diff --git a/nanoc/rules/index.rules b/nanoc/rules/index.rules index b78dfd0..bebb210 100644 --- a/nanoc/rules/index.rules +++ b/nanoc/rules/index.rules @@ -26,6 +26,8 @@ end compile "/js/loaders/SurahIndexLoader.ts" do filter :webpack write "/js/loaders/surah-index-loader.js" + filter :gzip + write "/js/loaders/surah-index-loader.js.gz" end compile "/css/main/SurahIndex.scss" do diff --git a/nanoc/rules/random.rules b/nanoc/rules/random.rules index 6d70b87..19e40dc 100644 --- a/nanoc/rules/random.rules +++ b/nanoc/rules/random.rules @@ -17,4 +17,6 @@ end compile "/js/main/random.ts" do filter(:webpack, depend_on: ["/js/lib/"]) write("/js/main/random.js") + filter(:gzip) + write("/js/main/random.js.gz") end diff --git a/nanoc/rules/redirect.rules b/nanoc/rules/redirect.rules index 7cdf28d..25f2b9a 100644 --- a/nanoc/rules/redirect.rules +++ b/nanoc/rules/redirect.rules @@ -14,4 +14,6 @@ end compile "/js/main/redirect.ts" do filter(:webpack, depend_on: ["/js/lib/"]) write("/js/main/redirect.js") + filter(:gzip) + write("/js/main/redirect.js.gz") end diff --git a/nanoc/rules/stream.rules b/nanoc/rules/stream.rules index 203af79..f85e94f 100644 --- a/nanoc/rules/stream.rules +++ b/nanoc/rules/stream.rules @@ -52,6 +52,8 @@ end compile "/js/loaders/SurahStreamLoader.ts" do filter :webpack write "/js/loaders/surah-stream-loader.js" + filter :gzip + write "/js/loaders/surah-stream-loader.js.gz" end compile "/css/main/SurahStream.scss" do