UNPKG

happy-weapp-template

Version:
7 lines (5 loc) 196 B
const HappyPack = require('happypack') const os = require('os') // 构造一个线程池 const happyThreadPool = HappyPack.ThreadPool({ size: os.cpus().length }) module.exports = happyThreadPool