forked from unicef/material-ui-currency-textfield
-
Notifications
You must be signed in to change notification settings - Fork 1
/
styleguide.config.js
41 lines (41 loc) · 957 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
const path = require('path')
const { styles, theme } = require('./styleguide.styles')
module.exports = {
title: "Material ui currency input",
showUsage: true,
styles,
theme,
showSidebar: false,
webpackConfig: {
module: {
rules: [
// Babel loader, will use your project’s babel.config.js
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
},
// Other loaders that are needed for your components
{
test: /\.css$/,
use: ["style-loader", "css-loader"],
},
],
},
},
// styleguideComponents: {
// Logo: path.join(__dirname, 'src/assets/logo.png')
// },
sections: [
{
name: '',
content: 'src/components/readme.md'
},
{
name: '',
components: () => ([
path.resolve(__dirname, 'src/components/CurrencyTextField', 'CurrencyTextField.js'),
])
},
],
};