|  |  | 
 |  |  | import ComponentsPlugin from 'unplugin-vue-components/webpack'; | 
 |  |  | import NutUIResolver from '@nutui/nutui-taro/dist/resolver'; | 
 |  |  |  | 
 |  |  | const rootPath = path.resolve(__dirname, '..', '..', '..'); | 
 |  |  |  | 
 |  |  | const config = { | 
 |  |  |   projectName: 'vue-mini', | 
 |  |  |   date: '2022-11-29', | 
 |  |  | 
 |  |  |   }, | 
 |  |  |   alias: { | 
 |  |  |     '@': path.resolve(__dirname, '..', 'src'), | 
 |  |  |     '@life-payment/components': path.resolve( | 
 |  |  |       __dirname, | 
 |  |  |       '..', | 
 |  |  |       'node_modules', | 
 |  |  |       '@life-payment/components' | 
 |  |  |     ), | 
 |  |  |     '@life-payment/components': path.resolve(rootPath, 'packages', 'components'), | 
 |  |  |   }, | 
 |  |  |   sourceRoot: 'src', | 
 |  |  |   outputRoot: `dist/${process.env.TARO_ENV}`, | 
 |  |  | 
 |  |  |     devServer: { | 
 |  |  |       proxy: { | 
 |  |  |         '/api': { | 
 |  |  |           target: 'http://localhost:57190', // 目标服务器地址 | 
 |  |  |           target: 'http://localhost:58190', // 目标服务器地址 | 
 |  |  |           changeOrigin: true, | 
 |  |  |         }, | 
 |  |  |       }, |