grunt-cacheinfo
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "bachi", |
@@ -23,2 +23,4 @@ # grunt-cacheinfo | ||
- 0.4.3 | ||
- [+] 增加 `offlineSyncHost` 配置项可以自行配置离线同步 CDN hostname,方便日常环境测试。 | ||
- 0.4.2 | ||
@@ -25,0 +27,0 @@ - `getPkgConfig` 优先从 `abc.json` 中拼。 |
@@ -39,3 +39,4 @@ /* | ||
distDir: 'build', | ||
offlineSyncDir: 'offline-trip-sync' | ||
offlineSyncDir: 'offline-trip-sync', | ||
offlineSyncHost: 'g.alicdn.com', | ||
}); | ||
@@ -283,3 +284,3 @@ | ||
abcJSON.cache.onlinePrefix = "https:\/\/g.alicdn.com\/" + abc.group + '\/' + abc.name + '\/' + abc.version + '\/' + options.offlineSyncDir + '\/'; | ||
abcJSON.cache.onlinePrefix = `https:\/\/${options.offlineSyncHost}\/` + abc.group + '\/' + abc.name + '\/' + abc.version + '\/' + options.offlineSyncDir + '\/'; | ||
@@ -286,0 +287,0 @@ clamUtil.fs.writeJSONFile(genABCJSONPath, abcJSON, function (err) { |
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
16700
397
60
10