浏览代码

Now copyright comments not removing after minification

sanex3339 7 年之前
父节点
当前提交
5d5a9a9ee1
共有 4 个文件被更改,包括 26 次插入7 次删除
  1. 23 0
      dist/index.js
  2. 1 1
      test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts
  3. 1 1
      webpack.config.js
  4. 1 5
      yarn.lock

文件差异内容过多而无法显示
+ 23 - 0
dist/index.js


+ 1 - 1
test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts

@@ -462,7 +462,7 @@ describe('JavaScriptObfuscator', () => {
         });
 
         describe('3.5k variables', function () {
-            this.timeout(100000);
+            this.timeout(200000);
 
             const expectedValue: number = 3500;
 

+ 1 - 1
webpack.config.js

@@ -11,7 +11,7 @@ const copyright = 'Copyright (C) 2017 Timofey Kachalov <[email protected]>';
  * @return {string}
  */
 const getLicenseText = () => {
-    return `/*\n${copyright}\n\n` +
+    return `/*!\n${copyright}\n\n` +
         fs.readFileSync('./LICENSE.BSD', 'utf8') + "\n*/";
 };
 

+ 1 - 5
yarn.lock

@@ -50,11 +50,7 @@
   version "2.2.41"
   resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.41.tgz#e27cf0817153eb9f2713b2d3f6c68f1e1c3ca608"
 
-"@types/node@*":
-  version "8.0.9"
-  resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.9.tgz#19f44c3b6cb8a70d261d366f73650e3e3891ab2d"
-
-"@types/[email protected]":
+"@types/node@*", "@types/[email protected]":
   version "8.0.10"
   resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.10.tgz#12efec9183b072d5f951cf86395a4c780f868a17"
 

部分文件因为文件数量过多而无法显示