Skip to content

Commit

Permalink
fix build not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Jun 15, 2023
1 parent 7ddcb14 commit ea9237c
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 187 deletions.
4 changes: 3 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const production = process.argv[2] === "--production";
import esbuild from "esbuild";
import { copy } from "esbuild-plugin-copy";
import { sassPlugin } from "esbuild-sass-plugin";
import esbuild from "esbuild";

const watch = process.argv[2] === "--watch";
const context = await esbuild
Expand All @@ -14,6 +14,7 @@ const context = await esbuild
sourcemap: !production,
minify: production,
platform: "node",
target: "ES2021",
plugins: [
copy({
resolveFrom: "cwd",
Expand Down Expand Up @@ -46,5 +47,6 @@ const context = await esbuild
if (watch) {
await context.watch();
} else {
context.rebuild();
context.dispose();
}
Loading

0 comments on commit ea9237c

Please sign in to comment.