refactoring

This commit is contained in:
sanex3339
2016-07-09 15:31:23 +03:00
parent 43ede6b16b
commit e30172dfda
2 changed files with 15 additions and 12 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import * as path from 'path';
import { Command } from 'commander';
import { IObfuscationResult } from "../interfaces/IObfuscationResult";
@@ -186,7 +188,7 @@ export class JavaScriptObfuscatorCLI {
if (options.sourceMapMode === SourceMapMode.Separate) {
javaScriptObfuscator.setSourceMapUrl(
outputSourceMapPath.split('/').pop()
path.basename(outputSourceMapPath)
);
}