feat: obfuscate build files
Deploy / Build (push) Has been cancelled
Deploy / Deploy to Stapler (push) Has been cancelled
Lint / ESLint (push) Has been cancelled
Lint / Oxlint (push) Has been cancelled
Lint / TypeScript (push) Has been cancelled

This commit is contained in:
2026-07-17 11:09:43 +02:00
parent 6680d464c3
commit f92baf3b82
2 changed files with 15 additions and 17 deletions
+14 -1
View File
@@ -18,7 +18,6 @@ export default ({ mode }: { mode: string }) => {
return defineConfig({
plugins: [vue(), vueDevTools(), mdPlugin({ mode: [Mode.HTML] })],
base: process.env.VITE_BASE_URL,
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
@@ -29,5 +28,19 @@ export default ({ mode }: { mode: string }) => {
'@components': fileURLToPath(new URL('./src/components', import.meta.url)),
},
},
build: {
rolldownOptions: {
output: {
codeSplitting: {
groups: [
{
name: (moduleId: string) => moduleId.includes('node_modules') ? 'libs' : 'app',
maxSize: 1024 * 1024,
}
]
}
}
}
}
})
}