mod-build 3.6.58-beta.1 → 3.6.59-beta.1

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
+ ## 3.6.59
4
+
5
+ - adding `srcset` to the `add-path-subdirectories` gulp task for `<picture>` tags
6
+
3
7
  ## 3.6.58
4
8
 
5
9
  - removing the copying of mod-form & qs-form JS files out of `grab-shared-scripts` gulp task, now that all S3 sites have been migrated over to use homeowner.min.js
@@ -16,6 +16,12 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
16
16
  }
17
17
  return match;
18
18
  }))
19
+ .pipe(replace(/((srcset="images)\/[^"]+")/g, function(match, path) {
20
+ if (path.startsWith('srcset="images')) {
21
+ return `srcset="${pathSubdirectory}${path.slice(5)}`;
22
+ }
23
+ return match;
24
+ }))
19
25
  .pipe(replace(/((href=")(images|styles|shared-components)\/[^"]+")/g, function(match, path) {
20
26
  if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components')) {
21
27
  return `href="${pathSubdirectory}${path.slice(6)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.58-beta.1",
3
+ "version": "3.6.59-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",