-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
22 lines (21 loc) · 929 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// webpack.config.js
const path = require('path')
module.exports = {
resolve: {
alias: {
"@root": path.resolve(__dirname, '.'),
"@src": path.resolve(__dirname, 'src'),
"@config": path.resolve(__dirname, 'src/config'),
"@controllers": path.resolve(__dirname, 'src/controllers'),
"@middlewares": path.resolve(__dirname, 'src/middlewares'),
"@models": path.resolve(__dirname, 'src/models'),
"@modules": path.resolve(__dirname, 'src/modules'),
"@resources": path.resolve(__dirname, 'src/resources'),
"@routes": path.resolve(__dirname, 'src/routes'),
"@services": path.resolve(__dirname, 'src/services'),
"@tests": path.resolve(__dirname, 'src/tests'),
"@types": path.resolve(__dirname, 'src/types'),
"@utils": path.resolve(__dirname, 'src/utils')
}
}
}