Redirect /
to /space
, build text/
, minify embedded CSS and JS
This commit is contained in:
parent
310fa09baf
commit
4140e4893c
4 changed files with 20 additions and 0 deletions
2
dc09.js
2
dc09.js
|
@ -191,6 +191,8 @@ function minifyHtml(dir, files) {
|
||||||
removeStyleLinkTypeAttributes: true,
|
removeStyleLinkTypeAttributes: true,
|
||||||
useShortDoctype: true,
|
useShortDoctype: true,
|
||||||
keepClosingSlash: false,
|
keepClosingSlash: false,
|
||||||
|
minifyCSS: true,
|
||||||
|
minifyJS: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
fs.writeFileSync(built, content)
|
fs.writeFileSync(built, content)
|
||||||
|
|
11
index.html
Normal file
11
index.html
Normal 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
3
text/webpage.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"html": ["index.html"]
|
||||||
|
}
|
4
webpage.json
Normal file
4
webpage.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"html": ["index.html"],
|
||||||
|
"other": [".domains"]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue