Mobile version view
This commit is contained in:
@@ -1,26 +1,45 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { resolve } from 'path';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
import FullReload from 'vite-plugin-full-reload';
|
||||
|
||||
export default defineConfig({
|
||||
clearScreen: false,
|
||||
plugins: [
|
||||
// tsconfigPaths({ loose: true }),
|
||||
sveltekit(),
|
||||
svelte(),
|
||||
// FullReload(["src/**/*.{js,ts,svelte}"])
|
||||
],
|
||||
resolve: {
|
||||
alias:{
|
||||
'$lib': resolve(__dirname, './src/lib'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, "index.html"),
|
||||
mobile: resolve(__dirname, 'mobile/index.html')
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
fs: {
|
||||
allow: [
|
||||
"./gradio",
|
||||
"./litegraph",
|
||||
]
|
||||
}
|
||||
|
||||
hmr: {
|
||||
clientPort: 443,
|
||||
},
|
||||
// fs: {
|
||||
// allow: [
|
||||
// "src",
|
||||
// "mobile",
|
||||
// "gradio",
|
||||
// "litegraph",
|
||||
// "node_modules",
|
||||
// ]
|
||||
// }
|
||||
},
|
||||
test: {
|
||||
include: ['src/**/*.{test,spec}.{js,ts}']
|
||||
|
||||
Reference in New Issue
Block a user