UNPKG
hexo-theme-kratos-rebirth
Version:
latest (3.0.1)
next (3.0.0-rc.0)
3.0.1
3.0.0
3.0.0-rc.0
3.0.0-beta.2
3.0.0-beta.1
3.0.0-beta.0
3.0.0-alpha.3
3.0.0-alpha.2
3.0.0-alpha.1
3.0.0-alpha.0
2.2.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
A lovely yet modern theme for Hexo.
github.com/Candinya/Kratos-Rebirth
Candinya/Kratos-Rebirth
hexo-theme-kratos-rebirth
/
devtools
/
build-watch.js
11 lines
(9 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
buildOnce =
require
(
"./build-once"
);
const
chokidar =
require
(
"chokidar"
); chokidar.
watch
(
"src"
).
on
(
"change"
,
(
path
) =>
{
console
.
log
(
`[
${
new
Date
().toLocaleTimeString()}
]`
,
`
${path}
变化,正在重新构建...`
, );
buildOnce
(); });