| | |
| | | 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}`, |
| | |
| | | }, |
| | | }) |
| | | ); |
| | | |
| | | chain.toConfig().module.rules.forEach((rule) => { |
| | | console.log('rule', JSON.stringify(rule)); |
| | | }); |
| | | |
| | | chain.plugin('unplugin-vue-components').use( |
| | | ComponentsPlugin({ |