mod-build 3.6.44-beta.5 → 3.6.44-beta.6

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.
@@ -6,6 +6,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
6
6
  const pathSubdirectory = siteData.siteData && siteData.siteData.pathSubdirectory || siteData && siteData.pathSubdirectory;
7
7
 
8
8
  return gulp.src(siteSettings.distFolder + '/**/*.html')
9
+ .pipe(replace(/(href="favicon.ico")/g, function(match, path) {
10
+ return `href="${pathSubdirectory}favicon.ico"`;
11
+ }))
9
12
  .pipe(replace(/((src=")(images|scripts|shared-components)\/[^"]+")/g, function(match, path) {
10
13
  if (path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="shared-components')) {
11
14
  return `src="${pathSubdirectory}${path.slice(5)}`;
@@ -446,15 +446,15 @@ module.exports = function() {
446
446
  }
447
447
  },
448
448
 
449
- // If siteData.pathSubdirectory exists...append the directory path to all of the existing relative URL paths
450
- 'handle-path-subdirectories': {
449
+ // If siteData.pathSubdirectory exists...append the directory path to all of the existing RELATIVE URL paths
450
+ 'add-path-subdirectories': {
451
451
  subtasks: [],
452
452
  func: function(opts) {
453
453
  if ('undefined' === typeof opts.gulpTasksFolderPath) {
454
454
  opts.gulpTasksFolderPath = '.';
455
455
  }
456
456
 
457
- return require(opts.gulpTasksFolderPath + '/handle-path-subdirectories')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
457
+ return require(opts.gulpTasksFolderPath + '/add-path-subdirectories')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
458
458
  }
459
459
  },
460
460
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.44-beta.5",
3
+ "version": "3.6.44-beta.6",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",