feat: add info
This commit is contained in:
22
apps/play/vite.config.ts
Normal file
22
apps/play/vite.config.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import * as path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import unocss from 'unocss/vite'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
const baseUrl = fileURLToPath(new URL('./', import.meta.url))
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
unocss(),
|
||||
],
|
||||
resolve: {
|
||||
alias: [
|
||||
{
|
||||
find: /^@penna\/vue/,
|
||||
replacement: path.resolve(baseUrl, '../../packages/vue/src'),
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user