-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
50 lines (50 loc) · 1001 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
43
44
45
46
47
48
49
50
module.exports = {
components: "client/components/**/*.vue",
defaultExample: true,
require: [
"./styleguide/scripts.js",
"./node_modules/element-ui/packages/theme-chalk/lib/index.css"
],
theme: {
baseBackground: "#fdfdfc",
link: "#274e75",
linkHover: "#90a7bf",
border: "#e0d2de",
font: ["Helvetica", "sans-serif"]
},
sections: [{
name: "Writing Components", content: "./docs/Components.md"
}],
webpackConfig: {
module: {
rules: [
{
test: /\.vue$/,
loader: "vue-loader"
},
{
test: /\.css$/,
use: [
{ loader: "style-loader" },
{ loader: "css-loader" }
]
},
{
test: /\.(png|jpe?g|gif|svg|ico)(\?.*)?$/,
loader: "url-loader",
options: {
limit: 10000,
name: "img/[name].[hash:16].[ext]"
}
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
loader: "url-loader?limit=10000"
}
]
}
},
showUsage: true,
showCode: true,
vuex: "./client/store/index"
}