diff --git a/build.js b/build.js index 350915c..52e6d6d 100644 --- a/build.js +++ b/build.js @@ -35,10 +35,10 @@ function example(code) { function buildDocs() { const template = fs.readFileSync("docs/index.html.ejs", "utf-8"); - glob("build/*", function (er, files) { - if (!er) { - files.forEach((srcfile) => - fs.copyFileSync(srcfile, path.join("docs", path.basename(srcfile))) + glob("build/*", (err, files) => { + if (!err) { + files.forEach((srcFile) => + fs.copyFileSync(srcFile, path.join("docs", path.basename(srcFile))) ); } else throw "error globbing build directory."; }); @@ -53,7 +53,7 @@ function buildCSS() { .use(require("postcss-inline-svg")) .use(require("postcss-css-variables")({ preserve: "computed" })) .use(require("postcss-calc")) - .use(require("postcss-copy")({ dest: "build" })) + .use(require("postcss-copy")({ dest: "build", template: "[name].[ext]" })) .process(fs.readFileSync("style.css"), { from: "style.css", to: "build/98.css", diff --git a/build/98.css b/build/98.css index 97ef8e3..6056f03 100644 --- a/build/98.css +++ b/build/98.css @@ -58,16 +58,16 @@ @font-face { font-family: "Pixelated MS Sans Serif"; - src: url("25f9a0847b3cf78d.woff") format("woff"); - src: url("13dcc34c595402ca.woff2") format("woff2"); + src: url("ms_sans_serif.woff") format("woff"); + src: url("ms_sans_serif.woff2") format("woff2"); font-weight: normal; font-style: normal; } @font-face { font-family: "Pixelated MS Sans Serif"; - src: url("c4fd1f3534edc0fe.woff") format("woff"); - src: url("6a40a91bb5e3bfdf.woff2") format("woff2"); + src: url("ms_sans_serif_bold.woff") format("woff"); + src: url("ms_sans_serif_bold.woff2") format("woff2"); font-weight: bold; font-style: normal; } diff --git a/build/ms_sans_serif.woff b/build/ms_sans_serif.woff new file mode 100644 index 0000000..a8df7f1 Binary files /dev/null and b/build/ms_sans_serif.woff differ diff --git a/build/ms_sans_serif.woff2 b/build/ms_sans_serif.woff2 new file mode 100644 index 0000000..83ea806 Binary files /dev/null and b/build/ms_sans_serif.woff2 differ diff --git a/build/ms_sans_serif_bold.woff b/build/ms_sans_serif_bold.woff new file mode 100644 index 0000000..44064b3 Binary files /dev/null and b/build/ms_sans_serif_bold.woff differ diff --git a/build/ms_sans_serif_bold.woff2 b/build/ms_sans_serif_bold.woff2 new file mode 100644 index 0000000..610c091 Binary files /dev/null and b/build/ms_sans_serif_bold.woff2 differ diff --git a/docs/98.css b/docs/98.css index 97ef8e3..6056f03 100644 --- a/docs/98.css +++ b/docs/98.css @@ -58,16 +58,16 @@ @font-face { font-family: "Pixelated MS Sans Serif"; - src: url("25f9a0847b3cf78d.woff") format("woff"); - src: url("13dcc34c595402ca.woff2") format("woff2"); + src: url("ms_sans_serif.woff") format("woff"); + src: url("ms_sans_serif.woff2") format("woff2"); font-weight: normal; font-style: normal; } @font-face { font-family: "Pixelated MS Sans Serif"; - src: url("c4fd1f3534edc0fe.woff") format("woff"); - src: url("6a40a91bb5e3bfdf.woff2") format("woff2"); + src: url("ms_sans_serif_bold.woff") format("woff"); + src: url("ms_sans_serif_bold.woff2") format("woff2"); font-weight: bold; font-style: normal; } diff --git a/docs/ms_sans_serif.woff b/docs/ms_sans_serif.woff new file mode 100644 index 0000000..a8df7f1 Binary files /dev/null and b/docs/ms_sans_serif.woff differ diff --git a/docs/ms_sans_serif.woff2 b/docs/ms_sans_serif.woff2 new file mode 100644 index 0000000..83ea806 Binary files /dev/null and b/docs/ms_sans_serif.woff2 differ diff --git a/docs/ms_sans_serif_bold.woff b/docs/ms_sans_serif_bold.woff new file mode 100644 index 0000000..44064b3 Binary files /dev/null and b/docs/ms_sans_serif_bold.woff differ diff --git a/docs/ms_sans_serif_bold.woff2 b/docs/ms_sans_serif_bold.woff2 new file mode 100644 index 0000000..610c091 Binary files /dev/null and b/docs/ms_sans_serif_bold.woff2 differ