You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/features/vscode-extension.md
+15
Original file line number
Diff line number
Diff line change
@@ -63,3 +63,18 @@ You can add glob patterns to the `slidev.include` configuration to include files
63
63
"slidev.include": ["**/presentation.md"]
64
64
}
65
65
```
66
+
67
+
#### Dev Command {#dev-command}
68
+
69
+
You can customize the command to start dev server by setting the `slidev.dev-command` configuration. The default value is `npm exec -c 'slidev ${args}'`.
70
+
71
+
The configured command can contain placeholders:
72
+
73
+
-`${args}`: All CLI arguments. e.g. `slides.md --port 3000 --remote`
74
+
-`${port}`: The port number. e.g. `3000`
75
+
76
+
Examples:
77
+
78
+
- Global installation: `slidev ${args}`
79
+
- For PNPM users, you can set it to `pnpm slidev ${args}`.
80
+
- For [code-server](https://coder.com/docs/code-server/) users, you can set it to `pnpm slidev ${args} --base /proxy/${port}/`. This will make the dev server accessible at `http://localhost:8080/proxy/3000/`.
0 commit comments