forked from programokey/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
34 lines (32 loc) · 821 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
const path = require("path")
function resolve(dir) {
return path.join(__dirname, dir)
}
let markdown = require("markdown-it")({
preset: "default",
html: true,
typographer: true,
linkify: true,
preprocess: (markdownIt, source) => source
})
module.exports = {
chainWebpack: config => {
config.resolve.alias
.set("assets", resolve("src/assets"))
.set("images", resolve("src/assets/images"))
.set("comp", resolve("src/components"))
.set("scripts", resolve("src/scripts"))
.set("variables", resolve("src/styles/variables.styl"))
config.module
.rule("pdf")
.test(/\.pdf/)
.use("")
.loader("file-loader")
config.module
.rule("markdown")
.test(/\.md/)
.use("")
.loader("vue-markdown-loader")
.options(markdown)
}
}