mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:50:15 +08:00
[v2] Update wails.json with updated reloaddirs from wails dev
This commit is contained in:
parent
f034163da5
commit
a98d55db58
@ -325,6 +325,7 @@ func loadAndMergeProjectConfig(cwd string, flags *devFlags) (*project.Project, e
|
|||||||
|
|
||||||
if flags.reloadDirs != projectConfig.ReloadDirectories {
|
if flags.reloadDirs != projectConfig.ReloadDirectories {
|
||||||
projectConfig.ReloadDirectories = filepath.ToSlash(flags.reloadDirs)
|
projectConfig.ReloadDirectories = filepath.ToSlash(flags.reloadDirs)
|
||||||
|
shouldSaveConfig = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if flags.devServerURL == defaultDevServerURL && projectConfig.DevServerURL != defaultDevServerURL && projectConfig.DevServerURL != "" {
|
if flags.devServerURL == defaultDevServerURL && projectConfig.DevServerURL != defaultDevServerURL && projectConfig.DevServerURL != "" {
|
||||||
|
@ -146,7 +146,7 @@ Your system is ready for Wails development!
|
|||||||
| -appargs "args" | Arguments passed to the application in shell style | |
|
| -appargs "args" | Arguments passed to the application in shell style | |
|
||||||
| -platform "platform" | Platform/Arch to target | `runtime.GOOS` |
|
| -platform "platform" | Platform/Arch to target | `runtime.GOOS` |
|
||||||
|
|
||||||
If the `assetdir`, `wailsjsdir`, `debounce` or `devserverurl` flags are provided on the command line, they are saved in
|
If the `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce` or `devserverurl` flags are provided on the command line, they are saved in
|
||||||
`wails.json`, and become the defaults for subsequent invocations.
|
`wails.json`, and become the defaults for subsequent invocations.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
@ -26,5 +26,5 @@ The project config resides in the `wails.json` file in the project directory. Th
|
|||||||
|
|
||||||
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
The `assetdir`, `wailsjsdir`, `debounceMS` and `devserverurl` flags in `wails build/dev` will update the project config
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS` and `devserverurl` flags in `wails build/dev` will update the project config
|
||||||
and thus become defaults for subsequent runs.
|
and thus become defaults for subsequent runs.
|
Loading…
Reference in New Issue
Block a user