compress the index.html page
This commit is contained in:
@@ -366,10 +366,22 @@ in
|
|||||||
'';
|
'';
|
||||||
"jakstys.lt".extraConfig =
|
"jakstys.lt".extraConfig =
|
||||||
let
|
let
|
||||||
jakstysLandingPage = pkgs.runCommand "jakstys-landing-page" { } ''
|
jakstysLandingPage =
|
||||||
mkdir -p $out
|
pkgs.runCommand "jakstys-landing-page"
|
||||||
cp ${../../jakstys.lt.html} $out/index.html
|
{
|
||||||
'';
|
nativeBuildInputs = with pkgs; [
|
||||||
|
zstd
|
||||||
|
brotli
|
||||||
|
zopfli
|
||||||
|
];
|
||||||
|
}
|
||||||
|
''
|
||||||
|
mkdir -p $out
|
||||||
|
cp ${../../jakstys.lt.html} $out/index.html
|
||||||
|
zstd -k -19 $out/index.html
|
||||||
|
brotli -k $out/index.html
|
||||||
|
zopfli -k $out/index.html
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
@redirects {
|
@redirects {
|
||||||
|
|||||||
Reference in New Issue
Block a user