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 +1 -1
- package/tool/merge/mergeTool.js +2 -1
package/package.json
CHANGED
package/tool/merge/mergeTool.js
CHANGED
|
@@ -216,7 +216,8 @@ function compressFile(filePath, options, filePath2, stats) {
|
|
|
216
216
|
content = content.toString().replace(__bom, '');
|
|
217
217
|
|
|
218
218
|
if (!filePath2) {
|
|
219
|
-
|
|
219
|
+
// 只有当ignoreCompress为false时才执行replaceBlackFunction
|
|
220
|
+
if (options.ext == '.js' && !options.ignoreCompress) {
|
|
220
221
|
content = replaceBlackFunction(content, options); // 手动混淆和替换一些标签,更大的压缩js容量,具体替换规则请参考黑名单里的清单
|
|
221
222
|
}
|
|
222
223
|
|