webpack-javascript-obfuscator-plugin
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,3 +8,3 @@ "use strict"; | ||
* @Date: 2021-01-28 17:03:50 | ||
* @LastEditTime: 2021-02-02 17:13:22 | ||
* @LastEditTime: 2021-02-04 10:32:27 | ||
* @LastEditors: spark | ||
@@ -16,2 +16,4 @@ * @Description: 趣看天下前端开发 | ||
var Spinner = require("./utils/spinner"); | ||
var pluginName = "JavaScriptObfuscatorPlugin"; | ||
@@ -57,4 +59,5 @@ | ||
var progress = new Spinner(); | ||
compiler.hooks.run.tap(pluginName, function () { | ||
console.log("\nwebpack AST加密构建过程开始!\n"); | ||
progress.start("AST加密构建过程开始!", "blue"); | ||
}); | ||
@@ -79,3 +82,3 @@ compiler.hooks.emit.tapAsync(pluginName, function (compilation, callback) { | ||
}; | ||
console.log("\n" + filename + ": AST加密完成\n"); | ||
progress.setText(filename + ": AST加密完成"); | ||
} | ||
@@ -86,2 +89,3 @@ })(); | ||
progress.succeed("加密进程结束"); | ||
callback(); | ||
@@ -88,0 +92,0 @@ }); |
{ | ||
"name": "webpack-javascript-obfuscator-plugin", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "一个简易的webpack加密javascript的插件", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "rimraf dist && babel index.js -d dist" | ||
"build": "rimraf dist && babel src -d dist" | ||
}, | ||
@@ -11,0 +11,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10921
7
266