vant/build/genExamples.js
2017-07-20 14:35:08 +08:00

19 lines
434 B
JavaScript

const path = require('path');
const docConfig = require('../docs/src/doc.config');
const { extractExample } = require('zan-doc/src/helper');
function extract(watch = false) {
extractExample({
src: path.resolve(__dirname, '../docs/examples-docs'),
dist: path.resolve(__dirname, '../docs/examples-dist'),
nav: docConfig['zh-CN'].nav,
watch
});
}
extract();
module.exports = function watch() {
extract(true);
};