Redirect / to /space, build text/, minify embedded CSS and JS

This commit is contained in:
DarkCat09 2022-12-30 16:11:02 +04:00
parent 310fa09baf
commit 4140e4893c
4 changed files with 20 additions and 0 deletions

View file

@ -191,6 +191,8 @@ function minifyHtml(dir, files) {
removeStyleLinkTypeAttributes: true,
useShortDoctype: true,
keepClosingSlash: false,
minifyCSS: true,
minifyJS: true,
}
)
fs.writeFileSync(built, content)

11
index.html Normal file
View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=/space">
<title>Redirect to Homepage</title>
</head>
<body>
<a href="/space">Redirect to Homepage</a>
</body>
</html>

3
text/webpage.json Normal file
View file

@ -0,0 +1,3 @@
{
"html": ["index.html"]
}

4
webpage.json Normal file
View file

@ -0,0 +1,4 @@
{
"html": ["index.html"],
"other": [".domains"]
}