-
Notifications
You must be signed in to change notification settings - Fork 11
/
vue.config.js
37 lines (36 loc) · 1.69 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
const path = require('path')
module.exports = {
configureWebpack: {
module: {
rules: [
{
test: /\.pug$/,
loader: 'pug-plain-loader'
}
]
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@cfg': path.resolve(__dirname, 'src', '_config'),
'@components': path.resolve(__dirname, 'src', 'components'),
'@config': path.resolve(__dirname, 'src', '_config', 'config'),
'@constants': path.resolve(__dirname, 'src', 'constants'),
'@containers': path.resolve(__dirname, 'src', 'containers'),
'@css': path.resolve(__dirname, 'src', '_assets', 'css'),
'@env': path.resolve(__dirname, 'src', '_environments'),
'@features': path.resolve(__dirname, 'src', 'features'),
'@fonts': path.resolve(__dirname, 'src', '_assets', 'fonts'),
'@helpers': path.resolve(__dirname, 'src', 'helpers'),
'@http': path.resolve(__dirname, 'src', '_config', 'http'),
'@i18n': path.resolve(__dirname, 'src', '_translate', 'i18n'),
'@icons': path.resolve(__dirname, 'src', '_assets', 'icons'),
'@img': path.resolve(__dirname, 'src', '_assets', 'img'),
'@js': path.resolve(__dirname, 'src', '_assets', 'js'),
'@mocks': path.resolve(__dirname, 'src', '_config', 'mocks'),
'@routes': path.resolve(__dirname, 'src', '_config', 'routes'),
'@utils': path.resolve(__dirname, 'src', 'utils')
}
}
}
}