Add initial project files
This commit is contained in:
Executable
+68
@@ -0,0 +1,68 @@
|
||||
import { fileURLToPath, URL } from 'node:url';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig(() => {
|
||||
return {
|
||||
plugins: [react(), tailwindcss()],
|
||||
base: '/',
|
||||
resolve: {
|
||||
preserveSymlinks: true,
|
||||
alias: [
|
||||
{ find: /^#/, replacement: fileURLToPath(new URL('./src/', import.meta.url)) },
|
||||
{
|
||||
find: '@crux-kit/utils',
|
||||
replacement: fileURLToPath(new URL('../../packages/utils/src', import.meta.url))
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/keenicon',
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/design-system/keenicon/src', import.meta.url)
|
||||
)
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/editor-tiptap',
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/design-system/editor-tiptap/src', import.meta.url)
|
||||
)
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/hooks',
|
||||
replacement: fileURLToPath(new URL('../../packages/hooks/src', import.meta.url))
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/types',
|
||||
replacement: fileURLToPath(new URL('../../packages/types/src', import.meta.url))
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/intl-name',
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/services/intl-name/src', import.meta.url)
|
||||
)
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/intl-date',
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/services/intl-date/src', import.meta.url)
|
||||
)
|
||||
},
|
||||
{
|
||||
find: '@crux-kit/local-storage',
|
||||
replacement: fileURLToPath(
|
||||
new URL('../../packages/services/local-storage/src', import.meta.url)
|
||||
)
|
||||
}
|
||||
]
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
strictPort: true,
|
||||
port: 5173,
|
||||
open: false
|
||||
},
|
||||
build: {
|
||||
chunkSizeWarningLimit: 3000
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user