Disable source maps (for now). Re-enable Session.clear().

pull/1103/head
Rick Carlino 2019-01-31 15:55:26 -06:00
parent a4f0b0b2ff
commit 321eae3791
2 changed files with 6 additions and 6 deletions

View File

@ -37,11 +37,10 @@ export namespace Session {
/** Clear localStorage and sessionStorage. */
export function clear(): never {
// localStorage.clear();
// sessionStorage.clear();
// location.assign(window.location.origin || "/");
throw new Error("WIP");
// return undefined as never;
localStorage.clear();
sessionStorage.clear();
location.assign(window.location.origin || "/");
return undefined as never;
}
}

View File

@ -68,7 +68,8 @@ namespace :api do
"--public-url /dist",
"--hmr-hostname #{ENV.fetch("API_HOST")}",
"--hmr-port 3808",
"--log-level 5",
# https://github.com/parcel-bundler/parcel/issues/2599#issuecomment-459131481
"--no-source-maps",
].join(" ")
puts "=== Running: \n#{cli}"
sh cli