@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.cjs +4 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -5096,8 +5096,9 @@ function generateSkinCssLoader(options) {
|
|
|
5096
5096
|
}
|
|
5097
5097
|
function buildSkinCssOptions(config) {
|
|
5098
5098
|
if (!config.skin) return null;
|
|
5099
|
+
const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
|
|
5099
5100
|
return {
|
|
5100
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
|
|
5101
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css?v=${cacheBuster}`,
|
|
5101
5102
|
localPath: `skin/${config.skin}/style.css`,
|
|
5102
5103
|
timeout: config.cssAfter.timeout
|
|
5103
5104
|
// reuse cssAfter timeout
|
|
@@ -5197,8 +5198,9 @@ function generateSkinJsLoader(options) {
|
|
|
5197
5198
|
}
|
|
5198
5199
|
function buildSkinJsOptions(config) {
|
|
5199
5200
|
if (!config.skin) return null;
|
|
5201
|
+
const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
|
|
5200
5202
|
return {
|
|
5201
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
|
|
5203
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js?v=${cacheBuster}`,
|
|
5202
5204
|
localPath: `skin/${config.skin}/script.js`,
|
|
5203
5205
|
timeout: config.jsAfter.timeout
|
|
5204
5206
|
// reuse jsAfter timeout
|