Add purge feature

This commit is contained in:
2022-11-29 12:33:02 +01:00
parent 427e287895
commit f081b97beb
3 changed files with 45 additions and 4 deletions

View File

@ -19,6 +19,7 @@ func buildAction(ctx *cli.Context) error {
opts := readCfg(cfgPath)
for _, o := range opts {
purge(o)
cp(o)
if ctx.Bool("p") {
@ -28,7 +29,7 @@ func buildAction(ctx *cli.Context) error {
o.ESBuild.Sourcemap = api.SourceMapNone
}
api.Build(o.ESBuild)
api.Build(o.ESBuild.BuildOptions)
replace(o)
}