From 743f32634315f2b227673a2f613e58eab351520f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 21 Sep 2024 14:23:58 -0300 Subject: [PATCH] Optimize inline of `postman.css` --- Gemfile | 1 + Gemfile.lock | 2 ++ Rules | 1 + share/al-quran.reflectslight.io/CHANGELOG.txt | 3 +++ 4 files changed, 7 insertions(+) diff --git a/Gemfile b/Gemfile index 9e71248da..075cda9fc 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,7 @@ gem "nanoc", "~> 4.12" gem "nanoc-gzip.rb" gem "nanoc-webpack.rb", "~> 0.10" gem "nanoc-tidy.rb", "~> 0.8.4" +gem "rainpress" ## # dev diff --git a/Gemfile.lock b/Gemfile.lock index 965d0f9ec..1ea26ad59 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -87,6 +87,7 @@ GEM racc (1.8.1) rack (3.1.7) rainbow (3.1.1) + rainpress (1.0.1) rake (13.2.1) rb-fsevent (0.11.2) rb-inotify (0.11.1) @@ -155,6 +156,7 @@ DEPENDENCIES nanoc-tidy.rb (~> 0.8.4) nanoc-webpack.rb (~> 0.10) paint (~> 2.3) + rainpress rake (~> 13.2) rexml (~> 3.3.3) ryo.rb diff --git a/Rules b/Rules index 2b2b2445b..ec240f05c 100644 --- a/Rules +++ b/Rules @@ -35,6 +35,7 @@ Nanoc::Tidy ## # See packages/typescript/postman compile "/css/vendor/postman.css" do + filter(:rainpress) write("/css/vendor/postman.css") end diff --git a/share/al-quran.reflectslight.io/CHANGELOG.txt b/share/al-quran.reflectslight.io/CHANGELOG.txt index 4d08a19d7..66e77a04c 100644 --- a/share/al-quran.reflectslight.io/CHANGELOG.txt +++ b/share/al-quran.reflectslight.io/CHANGELOG.txt @@ -2,6 +2,9 @@ ** vNEXT +**** Optimize inline of ~postman.css~ +The inlined CSS is minified before being inserted into HTML documents + **** Remove KaiOS breakpoints There is a separate branch (~kaios/main~) for KaiOS support