forked from plone/volto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
42 lines (42 loc) · 938 Bytes
/
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
module.exports = {
components: 'src/components/**/*.jsx',
ignore: ['**/*.test.jsx', '**/Contents/Contents*jsx', '**/Tile/Tile.jsx'],
verbose: true,
title: 'Volto Style Guide',
showCode: true,
showUsage: true,
sections: [
{
name: 'Introduction',
content: 'docs/introduction.md',
},
{
name: 'Theme',
components: 'src/components/theme/**/*.jsx',
content: 'docs/theme.md',
},
{
name: 'Manage',
components: 'src/components/manage/**/*.jsx',
content: 'docs/manage.md',
},
],
webpackConfig: {
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.(woff|woff2|ttf|eot|svg|png|gif|jpg)(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url-loader',
options: {
limit: 10000,
},
},
],
},
},
};