mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-27 01:56:15 -04:00
wip
This commit is contained in:
parent
f7a1383da5
commit
0fd99deca9
18 changed files with 602 additions and 325 deletions
|
@ -15,15 +15,9 @@ import Unocss from 'unocss/vite';
|
|||
export default defineConfig({
|
||||
plugins: [
|
||||
AutoImport({
|
||||
imports: [
|
||||
'vue',
|
||||
'vue-router',
|
||||
'@vueuse/core',
|
||||
{
|
||||
'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'],
|
||||
},
|
||||
],
|
||||
imports: ['vue', 'vue-router', '@vueuse/core'],
|
||||
vueTemplate: true,
|
||||
dts: true,
|
||||
eslintrc: {
|
||||
enabled: true,
|
||||
},
|
||||
|
@ -77,6 +71,21 @@ export default defineConfig({
|
|||
}),
|
||||
Unocss(),
|
||||
],
|
||||
|
||||
ssgOptions: {
|
||||
script: 'async',
|
||||
format: 'cjs',
|
||||
formatting: 'prettify',
|
||||
},
|
||||
|
||||
ssr: {
|
||||
noExternal: ['lodash', 'date-fns'],
|
||||
// noExternal: Object.keys(pkg.dependencies || {}),
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['naive-ui'],
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue