mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore: cleanup demo config (#28)
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@vjs/html": ["../../packages/html/src"],
|
||||
"@vjs/react": ["../../packages/react/src"],
|
||||
"@vjs/core": ["../../packages/core/src"]
|
||||
}
|
||||
"baseUrl": "."
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
server: {
|
||||
port: 5174,
|
||||
strictPort: false, // Allow Vite to try other ports if 5174 is taken
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
// https://vitejs.dev/config
|
||||
export default defineConfig({
|
||||
server: {
|
||||
port: 5174,
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@vjs/html'],
|
||||
},
|
||||
});
|
||||
@@ -3,11 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"jsx": "react-jsx",
|
||||
"paths": {
|
||||
"@vjs/react": ["../../packages/react/src"],
|
||||
"@vjs/html": ["../../packages/html/src"],
|
||||
"@vjs/core": ["../../packages/core/src"]
|
||||
}
|
||||
"jsxImportSource": "react"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
import type { UserConfig } from 'vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default {
|
||||
// https://vitejs.dev/config
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
server: {
|
||||
host: '0.0.0.0', // Listen on any interface
|
||||
port: 5173,
|
||||
watch: {
|
||||
ignored: [],
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['@vjs/react'], // Don’t prebundle, keeps rebuilds fast.
|
||||
exclude: ['@vjs/react'],
|
||||
},
|
||||
} satisfies UserConfig;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user