naive-ui/demo/loaders/NaiveUIDocLoader.js

9 lines
292 B
JavaScript
Raw Normal View History

const convertMd2Doc = require('./convertMd2Doc')
2020-09-04 01:06:39 +08:00
const projectPath = require('./project-path')
module.exports = function (content) {
2020-02-24 17:07:35 +08:00
const env = process.env.NODE_ENV
const relativeURL = this.resourcePath.replace(projectPath + '/', '')
return convertMd2Doc(content, env, relativeURL)
}