chore: disable ssg temporary

This commit is contained in:
Anthony Fu committed 2020-12-14 16:01:49 +08:00
1 parent fc460d64cd
commit d37b501751
4 files changed
+10 -9

No files matched your search

+6 -5
View File
@@ -1,7 +1,8 @@
import { execSync } from 'child_process'
// @ts-ignore
import { path } from 'chromium'
/* eslint-disable @typescript-eslint/no-var-requires */
console.log('Starting SSG...')
execSync(`npx cross-env CHROME_PATH="${path}" presite dist`, { stdio: 'inherit' })
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...')