Skip to content

Commit

Permalink
[+] unplugin components
Browse files Browse the repository at this point in the history
  • Loading branch information
LS-KR committed Jul 1, 2024
1 parent 60bb1bb commit 26e7afd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
13 changes: 13 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
ContentCard: typeof import('./src/components/ContentCard.vue')['default']
ContentField: typeof import('./src/views/ContentField.vue')['default']
}
}
21 changes: 11 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import {fileURLToPath, URL} from 'node:url'
import Components from 'unplugin-vue-components/vite'

import {defineConfig} from 'vite'
import markdown from './vite/markdown'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx(), markdown()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
base: '/TDP-FT/'
plugins: [vue(), vueJsx(), markdown(), Components({ dts: true, dirs: ['src/components', 'src/views'] })],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
base: '/TDP-FT/'
})

0 comments on commit 26e7afd

Please sign in to comment.