Bilibili-Evolved/registry/webpack/docs.ts

12 lines
255 B
TypeScript

import path from 'path'
import { builders } from './build'
export default builders.doc().then(configs =>
configs.map(config => {
config.output.path = path.resolve('./registry/dist/')
config.output.filename = 'doc.js'
return config
}),
)