123456789101112131415161718192021 |
- module.exports = {
- presets: [
- ['@vue/app', {
- useBuiltIns: 'entry'
- }]
- ],
- plugins: [
- '@babel/plugin-proposal-optional-chaining',
- [
- 'import',
- {
- libraryName: 'vant',
- libraryDirectory: 'es',
- // 指定样式路径
- style: (name) => `${name}/style/less`
- },
- 'vant'
- ]
- ]
- }
|