Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightjack committed Jun 26, 2023
1 parent 214cc65 commit d63f35b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
node_bundler = "esbuild"

[dev]
publish = "src"
publish = "src"
5 changes: 4 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ const html = await fs.readFile(join(SRC, 'index.html'), 'utf-8');
await fs.rm(DIST, { recursive: true, force: true });

await build({
entryPoints: [join(SRC, 'js/main.js')],
entryPoints: [join(SRC, 'js/main.mjs')],
bundle: true,
format: 'esm',
target: 'esnext',
outdir: join(DIST, 'js'),
outExtension: {
'.js': '.mjs',
},
minify: true,
});

Expand Down
File renamed without changes.

0 comments on commit d63f35b

Please sign in to comment.