Skip to content

Commit

Permalink
Run bundle step before minify
Browse files Browse the repository at this point in the history
  • Loading branch information
hlanderdev committed Aug 20, 2024
1 parent 55b41f8 commit 8c116bc
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 8c116bc

Please sign in to comment.