17 lines
639 B
TypeScript
17 lines
639 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'~': fileURLToPath(new URL('./src', import.meta.url)),
|
|
// Matches packages/library's own alias -- needed because the "development"
|
|
// export condition on @nychthemeron/library resolves straight to that
|
|
// package's source (see its package.json), which itself imports via "@/...".
|
|
'@': fileURLToPath(new URL('../library/src', import.meta.url)),
|
|
},
|
|
},
|
|
})
|