forked from TaleLin/lin-cms-vue
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
35 lines (33 loc) · 732 Bytes
/
vue.config.js
File metadata and controls
35 lines (33 loc) · 732 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
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
lintOnSave: true,
baseUrl: '/',
productionSourceMap: false,
// assetsDir: 'static',
chainWebpack: (config) => {
config.resolve.alias
.set('@', resolve('src'))
.set('lin', resolve('src/lin'))
.set('assets', resolve('src/assets'))
},
configureWebpack: {
resolve: {
extensions: ['.js', '.json', '.vue', '.scss', '.html'],
},
},
css: {
loaderOptions: {
sass: {
data: '@import "src/assets/styles/share.scss";',
},
},
},
devServer: {},
// node_modules依赖项es6语法未转换问题
transpileDependencies: [
'vuex-persist',
],
}