1
0
mirror of https://github.com/jdan/98.css.git synced 2026-05-05 06:01:22 +09:00

template, arrow function

This commit is contained in:
Chris Kanich
2020-04-22 16:04:39 -05:00
committed by Jordan Scales
parent 1f0f7a63fd
commit 73c57192ef
11 changed files with 13 additions and 13 deletions

View File

@@ -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",