-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathstyleguide.config.js
40 lines (40 loc) · 1.04 KB
/
styleguide.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @Author: broccoli
* @LastEditors: broccoli
*/
const path = require('path');
module.exports = {
// set your styleguidist configuration here
title: '公共组件',
// 公共组件路径
components: 'src/components/**/*.vue',
// components: ['src/components/*.vue', 'src/components/**/[A-Z]*.vue'],
// defaultExample: true,
// sections: [
// {
// name: 'First Section',
// components: 'src/components/**/[A-Z]*.vue'
// }
// ],
// webpackConfig: {
// // custom config goes here
// },
// 定义示例代码选项卡的初始状态
exampleMode: 'expand',
// 样式指南所需的模块
require: [path.join(__dirname, 'styleguide/global.requires.js')],
// 引入图标集样式
template: {
head: {
links: [
{
rel: 'stylesheet',
href:
'https://at.alicdn.com/t/font_2736732_k2tffq46g2e.css'
}
]
}
},
// 修改示例预览的根组件,接收预览组件作为参数
renderRootJsx: path.join(__dirname, 'styleguide/styleguide.root.js')
};