[v2] fix tags in dev mode

This commit is contained in:
Lea Anthony
2021-09-30 07:11:49 +10:00
parent 9930ee10da
commit e013ce14a1

View File

@@ -145,6 +145,14 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
}
}
userTags := []string{}
for _, tag := range strings.Split(tags, " ") {
thisTag := strings.TrimSpace(tag)
if thisTag != "" {
userTags = append(userTags, thisTag)
}
}
buildOptions := &build.Options{
Logger: logger,
OutputType: "dev",
@@ -158,6 +166,7 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
IgnoreFrontend: false,
Verbosity: verbosity,
WailsJSDir: wailsjsdir,
UserTags: userTags,
}
watcher, err := fsnotify.NewWatcher()