mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix Vite issues (#2038)
* Fix environment vars in Vite * Add types, remove process.env override * Temporarily Remove Statigz / gzip * Update ui/v2.5/src/core/createClient.ts Co-authored-by: peolic <66393006+peolic@users.noreply.github.com> * Update ui/v2.5/src/serviceWorker.ts Co-authored-by: peolic <66393006+peolic@users.noreply.github.com> * Ignore case rules in types * Add windows js workaround Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0687cd2ef0
commit
8d94392cfb
@@ -15,14 +15,12 @@ export default defineConfig({
|
||||
},
|
||||
publicDir: 'public',
|
||||
assetsInclude: ['**/*.md'],
|
||||
plugins: [tsconfigPaths(), viteCompression({
|
||||
algorithm: 'gzip',
|
||||
disable: false,
|
||||
deleteOriginFile: true,
|
||||
filter: /\.(js|json|css|svg|md)$/i
|
||||
})],
|
||||
define: {
|
||||
'process.versions': {},
|
||||
'process.env': {}
|
||||
}
|
||||
plugins: [tsconfigPaths()
|
||||
// viteCompression({
|
||||
// algorithm: 'gzip',
|
||||
// disable: false,
|
||||
// deleteOriginFile: true,
|
||||
// filter: /\.(js|json|css|svg|md)$/i
|
||||
// })
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user