-
Notifications
You must be signed in to change notification settings - Fork 1
/
styleguide.config.js
45 lines (45 loc) · 1.1 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
41
42
43
44
45
/* eslint-disable no-undef */
module.exports = {
title: "Nepal Address Pickers",
ribbon: {
// Link to open on the ribbon click (required)
url: 'https://github.com/mhnpd/nepal-address-pickers',
// Text to show on the ribbon (optional)
text: 'Fork me on GitHub'
},
sections: [
{
name: 'Introduction', // Name of the section
content: 'docs/intro.md', // Path to your Markdown or JSX intro file
},
{
name: 'Components',
components: 'src/components/**/*.tsx',
},
// ... other sections
],
pagePerSection: true,
skipComponentsWithoutExample: true,
webpackConfig: {
module: {
rules: [
// Babel loader will use your project’s babel.config.js
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
// Other loaders that are needed for your components
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
}
}
}