Skip to content

Commit

Permalink
Merge pull request #57 from Hilzu/chore/minify-build-output
Browse files Browse the repository at this point in the history
Minify build output in production build
  • Loading branch information
Hilzu authored Nov 30, 2024
2 parents 1f24ccb + 8daf1e8 commit fbad77f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions template/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const {
},
});

const isProduction = !watch;

const options = {
logLevel: "info",
color: watch ? true : undefined,
Expand All @@ -23,6 +25,8 @@ const options = {
packages: "external",

sourcemap: true,
bundle: false,
minify: isProduction,
};

if (watch) {
Expand Down

0 comments on commit fbad77f

Please sign in to comment.