UNPKG

721 BJavaScriptView Raw
1// see http://vuejs-templates.github.io/webpack for documentation.
2var path = require('path')
3
4function resolve (rootPath, dir) {
5 return path.resolve(rootPath, dir)
6}
7module.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}