Optimize inline of postman.css

This commit is contained in:
0x1eef 2024-09-21 14:23:58 -03:00
parent 5023b494b1
commit 743f326343
4 changed files with 7 additions and 0 deletions

View file

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

View file

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

1
Rules
View file

@ -35,6 +35,7 @@ Nanoc::Tidy
##
# See packages/typescript/postman
compile "/css/vendor/postman.css" do
filter(:rainpress)
write("/css/vendor/postman.css")
end

View file

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