mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
feat(web): separate command to build with rollup plugin visualizer (#9097)
separate command to build with rollup plugin visualizer
This commit is contained in:
parent
53d571d29e
commit
0ff0b891a7
@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite dev --host 0.0.0.0 --port 3000",
|
||||
"build": "vite build",
|
||||
"build:stats": "BUILD_STATS=true vite build",
|
||||
"package": "svelte-kit package",
|
||||
"preview": "vite preview",
|
||||
"check:svelte": "svelte-check --no-tsconfig --fail-on-warnings",
|
||||
|
@ -30,10 +30,12 @@ export default defineConfig({
|
||||
},
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
visualizer({
|
||||
emitFile: true,
|
||||
filename: 'stats.html',
|
||||
}),
|
||||
process.env.BUILD_STATS === 'true'
|
||||
? visualizer({
|
||||
emitFile: true,
|
||||
filename: 'stats.html',
|
||||
})
|
||||
: undefined,
|
||||
enhancedImages(),
|
||||
],
|
||||
optimizeDeps: {
|
||||
|
Loading…
Reference in New Issue
Block a user