-
Notifications
You must be signed in to change notification settings - Fork 1
/
styleguide.config.js
50 lines (49 loc) · 1.2 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
const path = require('path')
module.exports = {
components: 'client/components/**/*.vue',
mixins: [
'client/plugins/date-picker'
],
webpackConfig: {
module: {
rules: [
// Vue loader
{
test: /\.vue$/,
exclude: /node_modules/,
loader: 'vue-loader'
},
// Babel loader, will use your project’s .babelrc
{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
// Other loaders that are needed for your components
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.scss$/,
loaders: ['style-loader', 'css-loader', 'sass-loader?precision=10']
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: path.join(__dirname, 'client/assets/img/[name].[hash:7].[ext]')
}
}
]
}
},
getExampleFilename (componentPath) {
return componentPath.replace('.vue', '.md')
},
require: [
'babel-polyfill',
path.join(__dirname, 'client/assets/scss/main.scss')
]
}