Update version, gemini models, and new progress dialoge, and charxjpeg

This commit is contained in:
Kwaroran
2025-02-06 09:48:55 +09:00
parent 0242fd27cc
commit 1b171cab66
18 changed files with 231 additions and 82 deletions

View File

@@ -4,9 +4,10 @@ import {sveltePreprocess} from "svelte-preprocess";
import wasm from "vite-plugin-wasm";
import { internalIpV4 } from 'internal-ip'
import topLevelAwait from "vite-plugin-top-level-await";
import strip from '@rollup/plugin-strip';
// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig(({command, mode}) => {
return {
plugins: [
svelte({
preprocess: [
@@ -22,6 +23,9 @@ export default defineConfig({
}),
wasm(),
topLevelAwait(),
command === 'build' ? strip({
include: '**/*.(mjs|js|svelte|ts)'
}) : null
],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
@@ -44,7 +48,7 @@ export default defineConfig({
minify: process.env.TAURI_DEBUG ? false : 'esbuild',
// produce sourcemaps for debug builds
sourcemap: !!process.env.TAURI_DEBUG,
chunkSizeWarningLimit: 2000
chunkSizeWarningLimit: 2000,
},
optimizeDeps:{
@@ -59,4 +63,5 @@ export default defineConfig({
'modules': '/modules'
}
}
}
});