-
Notifications
You must be signed in to change notification settings - Fork 2
/
styleguide.config.js
57 lines (57 loc) · 1.34 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
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-disable import/no-commonjs, import/unambiguous */
module.exports = {
title: "Edge Boilerplate",
styleguideDir: "docs/styleguide",
serverPort: 1559,
webpackConfig: {
module: {
rules: [
{
test: /\.(js|mjs|jsx)$/,
exclude: /node_modules/,
use:
[
{
loader: "babel-loader",
options: {
babelrc: true,
forceEnv: "edge-development-client"
}
}
]
},
{
test: /\.(eot|woff|woff2|ttf|otf|svg|png|jpg|jpeg|jp2|jpx|jxr|gif|webp|mp4|mp3|ogg|pdf|html|ico)$/,
loader: "file-loader",
options: {
name: "[path][name].[ext]"
}
},
{
test: /\.(css|pcss|sss)$/,
loaders: [
{
loader: "style-loader"
},
{
loader: "css-loader",
options: {
sourceMap: true,
modules: true,
localIdentName: "[path][name]-[local]",
minimize: false,
import: false
}
},
{
loader: "postcss-loader",
options: {
sourceMap: true
}
}
]
}
]
}
}
}