mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-02 23:08:14 +00:00
multi-core builds
This commit is contained in:
parent
4bdc17d4a1
commit
9ad89997a5
9 changed files with 224 additions and 108 deletions
quartz
7
quartz/bootstrap-worker.mjs
Normal file
7
quartz/bootstrap-worker.mjs
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
import workerpool from 'workerpool'
|
||||
const cacheFile = "./.quartz-cache/transpiled-worker.mjs"
|
||||
const { parseFiles } = await import(cacheFile)
|
||||
workerpool.worker({
|
||||
parseFiles
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue