Skip to content

Commit 1542938

Browse files
[feat] update docker dev compose command to more focu watch
1 parent 74df34f commit 1542938

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

content/guides/vuejs/develop.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,12 @@ services:
9191
- "5173:5173"
9292
develop:
9393
watch:
94-
- action: sync
95-
path: .
96-
target: /app
94+
- path: ./src
95+
action: sync
96+
- path: ./package.json
97+
action: restart
98+
- path: ./vite.config.js
99+
action: restart
97100
```
98101
- The `vuejs-prod` service builds and serves your static production app using Nginx.
99102
- The `vuejs-dev` service runs your Vue.js development server with live reload and hot module replacement.

0 commit comments

Comments
 (0)