mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 01:09:56 -05:00
Chore: Restructure Repository for SvelteKit
This commit is contained in:
+7
-20
@@ -1,33 +1,20 @@
|
||||
import { defineConfig } from "vite";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import path from "path";
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
plugins: [sveltekit()],
|
||||
clearScreen: false,
|
||||
resolve: {
|
||||
alias: {
|
||||
"@features": path.resolve("./src/features"),
|
||||
"@core": path.resolve("./src/core"),
|
||||
"@shared": path.resolve("./src/shared"),
|
||||
"@api": path.resolve("./src/api"),
|
||||
"@store": path.resolve("./src/store"),
|
||||
"@types": path.resolve("./src/types"),
|
||||
"@design": path.resolve("./src/design"),
|
||||
"@assets": path.resolve("./src/assets"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 1420,
|
||||
strictPort: true,
|
||||
watch: {
|
||||
ignored: ["**/src-tauri/**"],
|
||||
ignored: ['**/src-tauri/**'],
|
||||
},
|
||||
},
|
||||
envPrefix: ["VITE_", "TAURI_"],
|
||||
envPrefix: ['VITE_', 'TAURI_'],
|
||||
build: {
|
||||
target: ["es2021", "chrome100", "safari13"],
|
||||
minify: !process.env.TAURI_DEBUG ? "oxc" : false,
|
||||
target: ['es2021', 'chrome100', 'safari13'],
|
||||
minify: !process.env.TAURI_DEBUG ? 'oxc' : false,
|
||||
sourcemap: !!process.env.TAURI_DEBUG,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user