feat: add guarded GitHub Pages deployment
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { readFile, rm, writeFile } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
const output = path.resolve('offline-dist');
|
||||
const output = path.resolve(process.argv[2] ?? 'offline-dist');
|
||||
const htmlPath = path.join(output, 'index.html');
|
||||
const scriptPath = path.join(output, 'assets', 'app.js');
|
||||
const stylePath = path.join(output, 'assets', 'app.css');
|
||||
|
||||
Reference in New Issue
Block a user