Works now
This commit is contained in:
parent
42bd97b03e
commit
00e056cdd4
@ -12,7 +12,7 @@
|
||||
"build": "tsc && vite build",
|
||||
"serve": "vite preview",
|
||||
"start": "node start.js",
|
||||
"stop": "pkill -f node",
|
||||
"stop": "pkill -f 'vite preview'",
|
||||
"html": "html-minifier --remove-comments --collapse-whitespace --input-dir ./dist --output-dir ./dist --file-ext html",
|
||||
"replace": "npm run replace:script",
|
||||
"replace:script": "replace-in-file --configFile replace-script.cjs"
|
||||
|
6
start.js
6
start.js
@ -48,7 +48,11 @@ async function runCommands() {
|
||||
await renderHomePage();
|
||||
await runNpmCommand("run html");
|
||||
await runNpmCommand("run replace");
|
||||
await runNpmCommand("run stop");
|
||||
try {
|
||||
await runNpmCommand("run stop");
|
||||
} catch {
|
||||
// It's fine
|
||||
}
|
||||
}, 2000);
|
||||
|
||||
console.log("Starting web server");
|
||||
|
Loading…
Reference in New Issue
Block a user