Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lucky-hairs-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'preact-cli': patch
---

Reverts automatic conversion of `--sw` flag in dev to a boolean, which stopped the debug service worker from attaching.
4 changes: 3 additions & 1 deletion packages/cli/lib/commands/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ async function command(src, argv) {
}
argv.src = src || argv.src;
argv.production = false;
argv.sw = toBool(argv.sw);
if (argv.sw) {
argv.sw = toBool(argv.sw);
}

if (argv.https || process.env.HTTPS) {
let { key, cert, cacert } = argv;
Expand Down