-
Notifications
You must be signed in to change notification settings - Fork 2
/
tidory.config.example.js
79 lines (72 loc) · 1.18 KB
/
tidory.config.example.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* Tidory Configuration
* https://tidory.com/docs/configuration/
*/
module.exports = {
ts_session: '',
url: '',
preview: {
/**
* homeType
*
* NONE
* COVER
*/
homeType: 'NONE',
/**
* Preview Mode
*
* index
* entry
* category
* tag,
* location
* media,
* guestbook
*/
mode: 'index',
/**
* Skin Settings
*/
skinSettings: {
liststyle: 'list'
},
/**
* Variables
*/
variableSettings: {
sidebar: true,
'foldable-category': true,
'foldable-reply': true,
width: '720',
toc: true,
scrollspy: true,
hljs: 'xcode',
hljsDark: 'vs2015'
}
},
alias: {
'@': 'assets',
'~views': 'views'
},
/**
* Webpack Configuration
*
* @param {object} webpackConfig
*/
extends (webpackConfig) {
webpackConfig.module.rules = [
{
enforce: 'pre',
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader'
},
...webpackConfig.module.rules
]
webpackConfig.entry = {
vendor: './assets/vendor.js',
...webpackConfig.entry
}
}
}