Add post build command and exclude the esbuild outdir in the watcher.
This commit is contained in:
7
main.go
7
main.go
@ -28,7 +28,7 @@ type ESBuildExtended struct {
|
||||
type options struct {
|
||||
ESBuild ESBuildExtended
|
||||
Watch struct {
|
||||
Path string
|
||||
Paths []string
|
||||
Exclude []string
|
||||
}
|
||||
Serve struct {
|
||||
@ -52,6 +52,9 @@ type options struct {
|
||||
From string
|
||||
To string
|
||||
}
|
||||
ProductionBuildOptions struct {
|
||||
CmdPostBuild string
|
||||
}
|
||||
}
|
||||
|
||||
func readCfg(cfgPath string) []options {
|
||||
@ -89,7 +92,7 @@ func main() {
|
||||
app := &cli.App{
|
||||
Name: "gowebbuild",
|
||||
Usage: "All in one tool to build web frontend projects.",
|
||||
Version: "4.3.1",
|
||||
Version: "4.4.0",
|
||||
Authors: []*cli.Author{{
|
||||
Name: "trading-peter (https://github.com/trading-peter)",
|
||||
}},
|
||||
|
Reference in New Issue
Block a user