Skip to content

Commit

Permalink
Minify after bundling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimafisk committed Aug 21, 2024
1 parent 0d788bb commit 12e9d9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@ func Build() error {
log.Fatal("\nError in GopackDynamic build step", err)
}

// Run Minification
err = build.Minify(buildPath)
if err != nil {
log.Fatal("\nError in Minify build step", err)
}

// Run Bundler
err = build.Bundle(spaPath)
if err != nil {
log.Fatal("\nError in Bundle build step", err)
}

// Run Minification
err = build.Minify(buildPath)
if err != nil {
log.Fatal("\nError in Minify build step", err)
}

Building = false

// only relates to defer recover
Expand Down

0 comments on commit 12e9d9b

Please sign in to comment.