[v2] fix: run frontend:dev when using wails dev

This commit is contained in:
Lea Anthony
2021-10-26 19:20:09 +11:00
parent 262b6281e1
commit 00e9eb4b0b

View File

@@ -520,7 +520,14 @@ func (b *BaseBuilder) BuildFrontend(outputLogger *clilogger.CLILogger) error {
}
// Check if there is a build command
if b.projectData.BuildCommand == "" {
var buildCommand string
switch b.projectData.OutputType {
case "dev":
buildCommand = b.projectData.DevCommand
default:
buildCommand = b.projectData.BuildCommand
}
if buildCommand == "" {
outputLogger.Println("No Build command. Skipping.")
// No - ignore
return nil