crabatool 1.0.814 → 1.0.815
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 +7 -1
package/package.json
CHANGED
package/tool/merge/mergeTool.js
CHANGED
|
@@ -95,8 +95,14 @@ function buildFolder(options) {
|
|
|
95
95
|
list.forEach(function(item) {
|
|
96
96
|
var arr = item.split('=');
|
|
97
97
|
var key = arr[0].trim();
|
|
98
|
-
var value
|
|
98
|
+
var value;
|
|
99
|
+
if (key == '$versionDate$') {
|
|
100
|
+
value = new Date().toString('yyyyMMddhh');
|
|
101
|
+
} else {
|
|
102
|
+
value = arr[1].trim();
|
|
103
|
+
}
|
|
99
104
|
content = content.replaceAll(key, value);
|
|
105
|
+
|
|
100
106
|
});
|
|
101
107
|
}
|
|
102
108
|
// 没有输出文件,直接返回压缩后的文件
|