-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
48 lines (46 loc) · 1.04 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
lintOnSave: true,
productionSourceMap: false,
// assetsDir: 'static',
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src'))
.set('lin', resolve('src/lin'))
.set('assets', resolve('src/asset'))
config.module
.rule('md')
.test(/\.md$/)
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-markdown-loader')
.loader('vue-markdown-loader/lib/markdown-compiler')
},
configureWebpack: {
resolve: {
extensions: ['.js', '.json', '.vue', '.scss', '.html'],
},
},
css: {
loaderOptions: {
sass: {
data: '@import "@/assets/style/share.scss";',
},
},
},
devServer: {
port: 8080,
// proxy: {
// '/': {
// target: 'http://0.0.0.0:5000/',
// changeOrigin: true,
// },
// },
},
// node_modules依赖项es6语法未转换问题
transpileDependencies: ['vuex-persist'],
}