Skip to content

Commit fb19539

Browse files
committed
feat: hot reload close zenn-dev#3
1 parent 9ec0f0b commit fb19539

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

packages/example/articles/empty.md

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "example"
3+
type: "idea" # or "idea"
4+
topics:
5+
- React
6+
- Rust
7+
emoji: 👩‍💻
8+
published: false
9+
---

packages/zenn-cli/cli/preview/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const exec: cliCommand = async (argv) => {
3030
const server = await build({ port, previewUrl, srcDir });
3131
await open(previewUrl);
3232
if (watch) {
33-
const watcher = chokidar.watch(srcDir);
33+
const watcher = chokidar.watch(process.cwd());
3434
const io = socketIo(server);
3535
watcher.on("ready", () => {
3636
io.on("connection", (socket) => {

0 commit comments

Comments
 (0)