Skip to content

Commit

Permalink
use terser as minifyer + enclose option to try to avoid safari issues…
Browse files Browse the repository at this point in the history
… of a user
  • Loading branch information
myrho committed Jan 4, 2024
1 parent a3660cc commit 9088b09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ import elmPlugin from "vite-plugin-elm";
export default defineConfig({
plugins: [elmPlugin()],
server: { host: '0.0.0.0', hmr : { overlay : false } },
publicDir: "gen/public"
publicDir: "gen/public",
build: {
outDir: 'build',
minify: 'terser',
terserOptions: {enclose: true}
}

});

0 comments on commit 9088b09

Please sign in to comment.