mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 19:42:08 +08:00
22 lines
425 B
Markdown
22 lines
425 B
Markdown
# alias
|
|
|
|
```javascript
|
|
resolve: {
|
|
alias: [{
|
|
find: 'vue-i18n',
|
|
replacement: 'vue-i18n/dist/vue-i18n.cjs.js',
|
|
},
|
|
// /@/xxxx => src/xxxx
|
|
{
|
|
find: /\/@\//,
|
|
replacement: pathResolve('src') + '/',
|
|
},
|
|
// /#/xxxx => types/xxxx
|
|
{
|
|
find: /\/#\//,
|
|
replacement: pathResolve('types') + '/',
|
|
},
|
|
],
|
|
},
|
|
```
|