-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathconfig.js
32 lines (31 loc) · 820 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require('path')
module.exports = {
title: 'My Lib',
description: 'Just playing around.',
themeConfig: {
repo: 'https://github.com/wuruoyun/vue-component-lib-starter',
sidebar: [
{
text: 'Introduction',
children: [
{ text: 'What is My Lib?', link: '/' },
{ text: 'Getting Started', link: '/guide/' },
],
}, {
text: 'Components',
children: [
{ text: 'Component A', link: '/components/component-a' },
{ text: 'Component B', link: '/components/component-b' },
],
}
],
},
vite: {
resolve: {
alias: {
'my-lib': path.resolve(__dirname, '../../src'),
},
dedupe: ['vue', /primevue\/.+/], // avoid error when using dependencies that also use Vue
}
}
}