1 |
|
2 | var path = require('path')
|
3 |
|
4 | function resolve (rootPath, dir) {
|
5 | return path.resolve(rootPath, dir)
|
6 | }
|
7 | module.exports = function(params){
|
8 | const rootPath = params.root;
|
9 | return {
|
10 | prod: {
|
11 | env: require('./prod.env'),
|
12 | },
|
13 | dev: {
|
14 | env: require('./dev.env'),
|
15 | },
|
16 | alias:{
|
17 | '@root': resolve(rootPath, './'),
|
18 | '@src': resolve(rootPath, './src'),
|
19 | '@components': resolve(rootPath, './src/components'),
|
20 | '@directives': resolve(rootPath, './src/directives'),
|
21 | '@global_common': resolve(rootPath, './src/shared'),
|
22 | '@custom': resolve(rootPath, './src'),
|
23 | 'upaas-ui':'@beisen/m-upaas-ui',
|
24 | },
|
25 | }
|
26 | }
|