mod-build 4.0.69 → 4.0.70

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.70
4
+
5
+ - Ensuring that `/src` is replaced with `/` in the values of the `srcset` attribute as well.
6
+
3
7
  ## 4.0.69
4
8
 
5
9
  - Adding modal script to `STATIC_COPY_TARGETS`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.69",
3
+ "version": "4.0.70",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
package/vite.config.js CHANGED
@@ -80,7 +80,7 @@ export default defineConfig((config) => ({
80
80
  .replace(/(src|data-load|href)="\/?resources\//g, `$1="${config.pathSubdirectory}resources/`)
81
81
  .replace(/url\((\/?assets\/)/g, `url(${config.pathSubdirectory}assets/`);
82
82
  } else {
83
- updatedContents = contents.replace(/(src|data-load)="\/?src\//g, '$1="/');
83
+ updatedContents = contents.replace(/(src|srcset|data-load)="\/?src\//g, '$1="/');
84
84
  }
85
85
 
86
86
  await fs.promises.writeFile(file, updatedContents);