UNPKG

@molejs/mole-tools

Version:

Configuration and scripts for Mole App.

28 lines (26 loc) 759 B
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') function resolve (rootPath, dir) { return path.resolve(rootPath, dir) } module.exports = function(params){ const rootPath = params.root; return { prod: { env: require('./prod.env'), }, dev: { env: require('./dev.env'), }, alias:{ '@root': resolve(rootPath, './'), '@src': resolve(rootPath, './src'), '@components': resolve(rootPath, './src/components'), '@directives': resolve(rootPath, './src/directives'), '@global_common': resolve(rootPath, './src/shared'), '@custom': resolve(rootPath, './src'), 'upaas-ui':'@beisen/m-upaas-ui', '&': resolve(rootPath, './src') }, } }