chore: disable ssg temporary
This commit is contained in:
parent
fc460d64cd
commit
d37b501751
@ -2,7 +2,7 @@
|
||||
NPM_FLAGS = "--prefix=/dev/null"
|
||||
|
||||
[build]
|
||||
publish = ".presite"
|
||||
publish = "dist"
|
||||
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"
|
||||
|
||||
[[redirects]]
|
||||
|
@ -2,7 +2,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite --port 3333 --open",
|
||||
"build": "cross-env NODE_ENV=production vite build && esno scripts/ssg.ts"
|
||||
"build": "cross-env NODE_ENV=production vite build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/iconify": "^2.0.0-rc.2",
|
||||
@ -22,7 +22,7 @@
|
||||
"@vue/compiler-sfc": "^3.0.4",
|
||||
"@vuedx/typescript-plugin-vue": "^0.2.3",
|
||||
"autoprefixer": "^10.1.0",
|
||||
"chromium": "3.0.2",
|
||||
"chromium": "^3.0.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^7.15.0",
|
||||
"esno": "^0.3.0",
|
||||
|
@ -6975,7 +6975,7 @@ specifiers:
|
||||
'@vuedx/typescript-plugin-vue': ^0.2.3
|
||||
'@vueuse/core': ^4.0.0-rc.8
|
||||
autoprefixer: ^10.1.0
|
||||
chromium: 3.0.2
|
||||
chromium: ^3.0.2
|
||||
cross-env: ^7.0.3
|
||||
eslint: ^7.15.0
|
||||
esno: ^0.3.0
|
||||
|
@ -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...')
|
||||
|
Loading…
Reference in New Issue
Block a user