-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
37 lines (34 loc) · 816 Bytes
/
vue.config.js
File metadata and controls
37 lines (34 loc) · 816 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
// vue config
const path = require("path")
module.exports = {
publicPath: "", // use relative paths (CSS will be at root as well)
outputDir: "docs",
configureWebpack: {
resolve: {
alias: {
"package.json": path.resolve(__dirname, "package.json"),
},
},
devtool: "source-map",
},
chainWebpack: (config) => {
const svgRule = config.module.rule("svg")
svgRule.uses.clear()
svgRule
.use("babel-loader")
.loader("babel-loader")
.end()
.use("vue-svg-loader")
.loader("vue-svg-loader")
.options({
svgo: {
plugins: [{ removeDoctype: true }, { removeComments: true }, { removeViewBox: false }],
removeViewBox: false,
},
})
.end()
},
devServer: {
disableHostCheck: true,
},
}