feat(frontend): 只在build的时候混淆
This commit is contained in:
@@ -17,6 +17,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
obfuscatorPlugin({
|
obfuscatorPlugin({
|
||||||
|
apply: config => config['mode'] === 'build',
|
||||||
options: {
|
options: {
|
||||||
compact: true,
|
compact: true,
|
||||||
controlFlowFlattening: true,
|
controlFlowFlattening: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user