1
0
mirror of https://github.com/sakofchit/system.css.git synced 2026-05-05 06:01:22 +09:00
This commit is contained in:
sakofchit
2022-08-05 16:14:02 -04:00
commit 6934e67217
35 changed files with 5199 additions and 0 deletions

16
server.js Normal file
View File

@@ -0,0 +1,16 @@
const chokidar = require("chokidar");
const build = require("./build");
chokidar
.watch(["style.css", "build.js", "docs", "fonts", "icon"], {
usePolling: true,
})
.on("change", (file) => {
console.log(
`[${new Date().toLocaleTimeString()}] ${file} changed -- rebuilding...`
);
build();
});
var liveServer = require("live-server");
liveServer.start({ port: 3000, root: "dist" });