forked from dictyBase/dicty-components-header-footer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
40 lines (40 loc) · 942 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
module.exports = {
styleguideDir: "docs",
components: "src/**/[A-Z]*.js",
webpackConfig: {
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
options: {
babelrc: false,
presets: ["react-app"],
plugins: ["transform-export-extensions"],
},
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: "url-loader",
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: "file-loader",
},
{
test: /\.(jpg|png)$/,
exclude: /node_modules/,
loader: "url-loader",
options: {
limit: 25000,
},
},
{
test: /\.css$/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
},
],
},
},
}