mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
A file path will be displayed on obfuscation error
This commit is contained in:
@@ -174,12 +174,14 @@ export class JavaScriptObfuscatorCLI implements IInitializable {
|
||||
const configFileLocation: string = configFilePath ? path.resolve(configFilePath, '.') : '';
|
||||
const configFileOptions: TInputOptions = configFileLocation ? CLIUtils.getUserConfig(configFileLocation) : {};
|
||||
const inputFileName: string = path.basename(this.inputPath);
|
||||
const inputFilePath: string = this.inputPath;
|
||||
|
||||
return {
|
||||
...DEFAULT_PRESET,
|
||||
...configFileOptions,
|
||||
...inputCLIOptions,
|
||||
inputFileName
|
||||
inputFileName,
|
||||
inputFilePath
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user