naive-ui/demo/loaders/NaiveUIDemoLoader.js
2020-09-04 01:06:39 +08:00

11 lines
302 B
JavaScript

const convertMd2Demo = require('./convertMd2Demo')
const projectPath = require('./project-path')
module.exports = function (content) {
const relativeUrl = this.resourcePath.replace(projectPath + '/', '')
return convertMd2Demo(content, {
relativeUrl,
resourcePath: this.resourcePath
})
}