forked from LuckPerms/LuckPermsWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
39 lines (38 loc) · 1009 Bytes
/
vue.config.js
File metadata and controls
39 lines (38 loc) · 1009 Bytes
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
const config = require('./config.json');
module.exports = {
publicPath: config.base,
css: {
loaderOptions: {
sass: {
data: `
@import "@/scss/variables.scss";
@import "@/scss/breakpoints.scss";
`,
},
},
},
chainWebpack: (webpackConfig) => {
webpackConfig.module
.rule('md')
.test(/\.md$/)
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-markdown-loader')
.loader('vue-markdown-loader/lib/markdown-compiler')
.options({
raw: true,
linkify: true,
use: [
// eslint-disable-next-line global-require
[require('markdown-it-anchor'), {
permalink: true,
permalinkSymbol: '🔗',
slugify: (s) => String(s).trim().toLowerCase().replace(/\s+/g, '-').replace(/([^\w\-]+)/g, ''),
}],
// eslint-disable-next-line global-require
require('markdown-it-emoji'),
],
});
},
};