mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* upgrade dependencies * 更改所有 saladcss 写法 * fix: 升级依赖导致的样式错误 * fix: build vant css * use es module when pack && webpack scope hoisting * fix: vue module version * delete unused npm script * fix: build:vant script not work * fix: webpack config format * fix: build minify vant.js * fix: captain ui relative link
17 lines
443 B
JavaScript
17 lines
443 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
|
|
});
|
|
}
|
|
|
|
module.exports = function watch(isProduction) {
|
|
extract(!isProduction);
|
|
};
|