naive-ui/build/loaders/naive-ui-doc-loader.js
2021-04-05 14:38:39 +08:00

9 lines
295 B
JavaScript

const convertMd2Doc = require('./convert-md-to-doc')
const projectPath = require('./project-path')
module.exports = async function (content, path) {
const env = process.env.NODE_ENV
const relativeUrl = path.replace(projectPath + '/', '')
return convertMd2Doc(content, relativeUrl, env)
}