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