Comparing version 0.12.9 to 0.12.10
@@ -29,2 +29,5 @@ import argvGenerator from "minimist" | ||
} | ||
get isServer() { | ||
return this.environment === "server" | ||
} | ||
} | ||
@@ -31,0 +34,0 @@ |
@@ -24,2 +24,3 @@ import { cp, rm, mkdir } from "node:fs/promises" | ||
let isProd = argv.isProd | ||
let isServer = argv.isServer | ||
@@ -147,4 +148,5 @@ console.time("Cleaning") | ||
let ctx = contexts[i] | ||
if (i === 0) { | ||
if (i === 0 && !isServer) { | ||
ctx.serve({ port: argv.port, servedir: targetDirectory, host: "localhost" }) | ||
console.log(`###### Serving on http://localhost:${argv.port} ######`) | ||
} else { | ||
@@ -151,0 +153,0 @@ ctx.watch() |
{ | ||
"name": "@jon49/sw", | ||
"version": "0.12.9", | ||
"version": "0.12.10", | ||
"description": "Packages for MVC service workers.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35419
12
984