@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/index.js
CHANGED
|
@@ -4754,8 +4754,9 @@ function generateSkinCssLoader(options) {
|
|
|
4754
4754
|
}
|
|
4755
4755
|
function buildSkinCssOptions(config) {
|
|
4756
4756
|
if (!config.skin) return null;
|
|
4757
|
+
const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
|
|
4757
4758
|
return {
|
|
4758
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
|
|
4759
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css?v=${cacheBuster}`,
|
|
4759
4760
|
localPath: `skin/${config.skin}/style.css`,
|
|
4760
4761
|
timeout: config.cssAfter.timeout
|
|
4761
4762
|
// reuse cssAfter timeout
|
|
@@ -4855,8 +4856,9 @@ function generateSkinJsLoader(options) {
|
|
|
4855
4856
|
}
|
|
4856
4857
|
function buildSkinJsOptions(config) {
|
|
4857
4858
|
if (!config.skin) return null;
|
|
4859
|
+
const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
|
|
4858
4860
|
return {
|
|
4859
|
-
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
|
|
4861
|
+
remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js?v=${cacheBuster}`,
|
|
4860
4862
|
localPath: `skin/${config.skin}/script.js`,
|
|
4861
4863
|
timeout: config.jsAfter.timeout
|
|
4862
4864
|
// reuse jsAfter timeout
|