You've already forked 98.css
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:
committed by
Jordan Scales
parent
1f0f7a63fd
commit
73c57192ef
10
build.js
10
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",
|
||||
|
||||
Reference in New Issue
Block a user