Skip to content

Commit

Permalink
[dev.ts] Remove code that was commented out for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 5, 2025
1 parent b691764 commit 65fe4b5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ await barelyServe({
outDir: "dist/web/timer.cubing.net",
});

// await build({
// entryPoints: ["src/service-worker/sw.ts"],
// bundle: true,
// format: "esm", // TODO: test in Firefox
// outfile: "dist/web/timer.cubing.net/sw.js",
// });
await build({
entryPoints: ["src/service-worker/sw.ts"],
bundle: true,
format: "esm", // TODO: test in Firefox
outfile: "dist/web/timer.cubing.net/sw.js",
});

// await new Promise((resolve) => setTimeout(resolve, 1000));
await new Promise((resolve) => setTimeout(resolve, 1000));

// await injectManifest({
// globDirectory: "dist/web/timer.cubing.net/",
// globPatterns: ["**/*.{js,ico,html,png,css,ttf,woff,woff2,txt,svg}"],
// swDest: "dist/web/timer.cubing.net/sw.js",
// swSrc: "dist/web/timer.cubing.net/sw.js",
// });
await injectManifest({
globDirectory: "dist/web/timer.cubing.net/",
globPatterns: ["**/*.{js,ico,html,png,css,ttf,woff,woff2,txt,svg}"],
swDest: "dist/web/timer.cubing.net/sw.js",
swSrc: "dist/web/timer.cubing.net/sw.js",
});

0 comments on commit 65fe4b5

Please sign in to comment.