From fff838d7c61892a33080c15f5a58bd4c20d53239 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 22 Feb 2022 19:16:19 +1100 Subject: [PATCH] Clarify `frontend:dev` option. Closes #1169 --- v2/cmd/wails/internal/commands/dev/dev.go | 2 +- website/docs/reference/project-config.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/cmd/wails/internal/commands/dev/dev.go b/v2/cmd/wails/internal/commands/dev/dev.go index 77b7b36a6..a8b548baa 100644 --- a/v2/cmd/wails/internal/commands/dev/dev.go +++ b/v2/cmd/wails/internal/commands/dev/dev.go @@ -150,7 +150,7 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error { return err } - // frontend:dev server command + // frontend:dev server command. *Not concurrent* if projectConfig.DevCommand != "" { var devCommandWaitGroup sync.WaitGroup closer := runFrontendDevCommand(cwd, projectConfig.DevCommand, &devCommandWaitGroup) diff --git a/website/docs/reference/project-config.mdx b/website/docs/reference/project-config.mdx index c3b624274..e03bf4844 100644 --- a/website/docs/reference/project-config.mdx +++ b/website/docs/reference/project-config.mdx @@ -13,7 +13,7 @@ The project config resides in the `wails.json` file in the project directory. Th "reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]", "frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]", "frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]", - "frontend:dev": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers]", + "frontend:dev": "[This command is the dev equivalent of frontend:build]", "wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]", "version": "[Project config version]", "outputfilename": "[The name of the binary]",