crabatool 1.0.380 → 1.0.381

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.380",
3
+ "version": "1.0.381",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -216,7 +216,8 @@ function compressFile(filePath, options, filePath2, stats) {
216
216
  content = content.toString().replace(__bom, '');
217
217
 
218
218
  if (!filePath2) {
219
- if (options.ext == '.js') {
219
+ // 只有当ignoreCompress为false时才执行replaceBlackFunction
220
+ if (options.ext == '.js' && !options.ignoreCompress) {
220
221
  content = replaceBlackFunction(content, options); // 手动混淆和替换一些标签,更大的压缩js容量,具体替换规则请参考黑名单里的清单
221
222
  }
222
223