-
Notifications
You must be signed in to change notification settings - Fork 4
/
vue.config.js
34 lines (34 loc) · 889 Bytes
/
vue.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
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/wat' : '/',
runtimeCompiler: true,
outputDir: 'lib',
pages: {
index: {
entry: 'docs/docs.js',
},
},
chainWebpack: config => {
config.module
.rule('md')
.test(/\.md/)
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-markdown-loader')
.loader('vue-markdown-loader/lib/markdown-compiler')
.options({
preventExtract: true,
raw: true,
preprocess: function(MarkdownIt, Source) {
MarkdownIt.renderer.rules.table_open = function() {
return '<div class="table-container"><table class="table">';
};
MarkdownIt.renderer.rules.table_close = function() {
return '</table></div>';
};
return Source;
},
use: [],
});
},
};