-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyleguide.config.js
32 lines (32 loc) · 1.01 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
const path = require('path');
module.exports = {
title: 'React Flight Indicators',
components: './src/components/**/*.js',
updateWebpackConfig(webpackConfig) {
// Your source files folder or array of folders, should not include node_modules
const dir = path.join(__dirname, 'src');
webpackConfig.module.loaders.push(
{
test: /\.jsx?$/,
include: dir,
loader: 'babel-loader'
},
{
test: /\.svg$/,
include: path.join(__dirname, 'assets'),
loaders: [ 'babel',
{
loader: 'react-svg',
query: {
svgo: {
plugins: [{removeTitle: false}],
floatPrecision: 2
}
}
}
]
}
);
return webpackConfig;
},
};