UNPKG

san-cli-docit

Version:

san-cli-docit 是 [San](https://github.com/baidu/san) CLI 工具中 Markdown 文档建站部分。 是一个 [command 插件](https://ecomfe.github.io/san-cli)。

13 lines (12 loc) 316 B
/** * @file config loader * @author ksky521 */ const parseConfig = require('../lib/parseConfig'); /* eslint-disable space-before-function-paren */ module.exports = function(content) { content = parseConfig(this.resourcePath, content); return ` export default ${JSON.stringify(content)}; `; };