@patch-adams/core 1.5.1 → 1.5.2

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/dist/cli.js CHANGED
@@ -5086,8 +5086,9 @@ function generateSkinCssLoader(options) {
5086
5086
  }
5087
5087
  function buildSkinCssOptions(config) {
5088
5088
  if (!config.skin) return null;
5089
+ const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
5089
5090
  return {
5090
- remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
5091
+ remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css?v=${cacheBuster}`,
5091
5092
  localPath: `skin/${config.skin}/style.css`,
5092
5093
  timeout: config.cssAfter.timeout
5093
5094
  // reuse cssAfter timeout
@@ -5187,8 +5188,9 @@ function generateSkinJsLoader(options) {
5187
5188
  }
5188
5189
  function buildSkinJsOptions(config) {
5189
5190
  if (!config.skin) return null;
5191
+ const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
5190
5192
  return {
5191
- remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
5193
+ remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js?v=${cacheBuster}`,
5192
5194
  localPath: `skin/${config.skin}/script.js`,
5193
5195
  timeout: config.jsAfter.timeout
5194
5196
  // reuse jsAfter timeout