feat: obfuscate build files
This commit is contained in:
+14
-1
@@ -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,
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user