mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
feat: open obfuscate
This commit is contained in:
parent
a93eecbbb8
commit
b1066e0b83
@ -377,12 +377,12 @@ export async function buildProPluginServer(cwd: string, userConfig: UserConfig,
|
||||
'.json': 'copy',
|
||||
},
|
||||
esbuildPlugins: [pluginEsbuildCommercialInject],
|
||||
// onSuccess: async () => {
|
||||
// const serverFiles = [path.join(cwd, target_dir, 'server', 'index.js')];
|
||||
// serverFiles.forEach((file) => {
|
||||
// obfuscate(file);
|
||||
// });
|
||||
// },
|
||||
onSuccess: async () => {
|
||||
const serverFiles = [path.join(cwd, target_dir, 'server', 'index.js')];
|
||||
serverFiles.forEach((file) => {
|
||||
obfuscate(file);
|
||||
});
|
||||
},
|
||||
}),
|
||||
);
|
||||
fs.removeSync(tsconfig.path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user