vant-weapp/wedoc.js
刘建东 031ff697c6 微信小程序 zanui web 文档 (#142)
* [new feature]微信小程序 zanui web 文档

* fix: 修复绝对路径问题,对UI小优化

* fix: update config
2018-03-19 14:09:13 +08:00

21 lines
543 B
JavaScript

const path = require('path')
const getDemoTemplate = require('./website/demo')
module.exports = {
async: false,
config: path.resolve(__dirname, 'doc.config.js'),
docs: [ path.resolve(__dirname, 'packages') ],
out: path.resolve(__dirname, 'website/dist'),
markdown: {
before (source) {
return getDemoTemplate.call(this, source)
}
},
webpack: {
output: {
publicPath: process.argv[process.argv.length - 1] === 'build' ? 'https://b.yzcdn.cn/zanui/weapp' : '/',
filename: '[name].[hash].js'
}
}
}