vitesse/scripts/ssg.ts
2020-12-14 16:01:49 +08:00

9 lines
295 B
TypeScript

/* eslint-disable @typescript-eslint/no-var-requires */
console.log('Starting SSG...')
const { execSync } = require('child_process')
const chromium = require('chromium')
execSync(`npx cross-env CHROME_PATH="${chromium.path}" presite dist`, { stdio: 'inherit' })
console.log('SSG Finished...')