Skip to content
This repository was archived by the owner on Oct 13, 2020. It is now read-only.

Commit 4e605c4

Browse files
authored
feat: add --laravel-path option
2 parents 0d6984b + 12d4bc8 commit 4e605c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/laravel-nuxt-dev.js

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ program
2727
"URL path used to render the SPA",
2828
"/__laravel_nuxt__",
2929
)
30+
.option("--laravel-path [path]", "Path to laravel directory", process.cwd())
3031
.parse(process.argv);
3132

3233
const NUXT_PORT = parseInt(program.port);
@@ -67,6 +68,7 @@ const laravel = spawn(
6768
`--port=${LARAVEL_PORT}`,
6869
],
6970
{
71+
cwd: program.laravelPath,
7072
env: Object.assign({}, process.env, {
7173
NUXT_URL: renderUrl,
7274
APP_URL: `http://${program.hostname}:${NUXT_PORT}`,

0 commit comments

Comments
 (0)