-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
47 lines (43 loc) · 1.08 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
const path = require('path')
function resolve(dir) {
return path.resolve(__dirname, dir)
}
module.exports = {
css: {
loaderOptions: {
sass: {
prependData: `
@import './src/assets/styles/_variables.scss';
@import './src/assets/styles/form.scss';
@import './src/assets/styles/style.scss';
`
}
}
},
publicPath: './',
outputDir: process.env.outputDir,
assetsDir: 'assets',
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false,
configureWebpack: {
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
api: resolve('src/api'),
assets: resolve('src/assets'),
styles: resolve('src/assets/styles'),
images: resolve('src/assets/img'),
components: resolve('src/components'),
mixins: resolve('src/mixins'),
service: resolve('src/service'),
store: resolve('src/store'),
view: resolve('src/views')
}
}
},
devServer: {
hot: true,
open: 'Google Chrome'
}
}