From 4140e4893cadab7253cdd96fc3940021b36b9889 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 30 Dec 2022 16:11:02 +0400 Subject: [PATCH] Redirect `/` to `/space`, build `text/`, minify embedded CSS and JS --- dc09.js | 2 ++ index.html | 11 +++++++++++ text/webpage.json | 3 +++ webpage.json | 4 ++++ 4 files changed, 20 insertions(+) create mode 100644 index.html create mode 100644 text/webpage.json create mode 100644 webpage.json diff --git a/dc09.js b/dc09.js index 58ede57..385cbaa 100644 --- a/dc09.js +++ b/dc09.js @@ -191,6 +191,8 @@ function minifyHtml(dir, files) { removeStyleLinkTypeAttributes: true, useShortDoctype: true, keepClosingSlash: false, + minifyCSS: true, + minifyJS: true, } ) fs.writeFileSync(built, content) diff --git a/index.html b/index.html new file mode 100644 index 0000000..b4a8915 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + Redirect to Homepage + + + Redirect to Homepage + + diff --git a/text/webpage.json b/text/webpage.json new file mode 100644 index 0000000..bbb422b --- /dev/null +++ b/text/webpage.json @@ -0,0 +1,3 @@ +{ + "html": ["index.html"] +} diff --git a/webpage.json b/webpage.json new file mode 100644 index 0000000..25f3f45 --- /dev/null +++ b/webpage.json @@ -0,0 +1,4 @@ +{ + "html": ["index.html"], + "other": [".domains"] +}