Background image

This commit is contained in:
Corentin Risselin 2020-07-21 01:10:16 +09:00
commit d196d8ae32
3 changed files with 16 additions and 2 deletions

View file

@ -16,6 +16,20 @@ body
font-family: sans; font-family: sans;
} }
body::before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
background-image: url(/assets/back.webp);
width: 100%;
height: 100%;
opacity: 0.15;
z-index: -1;
}
@media (max-width: 420px) @media (max-width: 420px)
{ {
body body

View file

@ -41,7 +41,7 @@ module.exports = Object.assign(
{ {
filename: "[path].gz[query]", filename: "[path].gz[query]",
algorithm: "gzip", algorithm: "gzip",
test: [/\.js/, /^assets\.*/], test: [/\.js/, /\.svg/],
threshold: 1000 threshold: 1000
}) })
], ],

View file

@ -29,7 +29,7 @@ module.exports = Object.assign(
{ {
filename: "[path].gz[query]", filename: "[path].gz[query]",
algorithm: "gzip", algorithm: "gzip",
test: [/\.js/, /^assets\.*/], test: [/\.js/, /\.svg/],
threshold: 1000 threshold: 1000
}) })
] ]