Gzip loaders, main scripts

This commit is contained in:
0x1eef 2024-06-09 01:02:08 -03:00
parent e3963d58f7
commit 82c39f90a6
4 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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