mod-build 3.6.86-beta.1 → 3.6.86-beta.3
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
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 3.6.86
|
|
4
4
|
|
|
5
|
-
- Updated the `
|
|
6
|
-
|
|
5
|
+
- Updated the `add-path-subdirectories` task to include `<video>` tag attributes in the replacements, as well as fixing a bug for replacing `accessible-components/` paths
|
|
7
6
|
|
|
8
7
|
## 3.6.85
|
|
9
8
|
|
|
@@ -9,9 +9,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
9
9
|
return gulp.src(siteSettings.distFolder + '/**/*.html')
|
|
10
10
|
.pipe(replace(/(href="favicon.ico")/g, function(match, path) {
|
|
11
11
|
return `href="${pathSubdirectory}favicon.ico"`;
|
|
12
|
-
}))
|
|
13
|
-
.pipe(replace(/((src=")(images|scripts|shared-components)\/[^"]+")/g, function(match, path) {
|
|
14
|
-
if (path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="shared-components') || path.startsWith('src="accessible-components')) {
|
|
12
|
+
}))
|
|
13
|
+
.pipe(replace(/((src=")(resources|images|scripts|videos|shared-components|accessible-components)\/[^"]+")/g, function(match, path) {
|
|
14
|
+
if (path.startsWith('src="resources') || path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="videos') || path.startsWith('src="shared-components') || path.startsWith('src="accessible-components')) {
|
|
15
15
|
return `src="${pathSubdirectory}${path.slice(5)}`;
|
|
16
16
|
}
|
|
17
17
|
return match;
|
|
@@ -22,7 +22,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
22
22
|
}
|
|
23
23
|
return match;
|
|
24
24
|
}))
|
|
25
|
-
.pipe(replace(/((
|
|
25
|
+
.pipe(replace(/((poster="images)\/[^"]+")/g, function(match, path) {
|
|
26
|
+
if (path.startsWith('poster="images')) {
|
|
27
|
+
return `poster="${pathSubdirectory}${path.slice(8)}`;
|
|
28
|
+
}
|
|
29
|
+
return match;
|
|
30
|
+
}))
|
|
31
|
+
.pipe(replace(/((href=")(images|styles|shared-components|accessible-components)\/[^"]+")/g, function(match, path) {
|
|
26
32
|
if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components') || path.startsWith('src="accessible-components')) {
|
|
27
33
|
return `href="${pathSubdirectory}${path.slice(6)}`;
|
|
28
34
|
}
|
package/gulp-tasks/cache-bust.js
CHANGED
|
@@ -3,7 +3,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
|
|
|
3
3
|
return function() {
|
|
4
4
|
return gulp.src(siteSettings.distFolder + '/**')
|
|
5
5
|
.pipe(gulpPlugins.revAll.revision({
|
|
6
|
-
dontSearchFile: [/(resources)\/.*/, /(scripts\/components)\/.*/, /(fonts)
|
|
6
|
+
dontSearchFile: [/(resources)\/.*/, /(scripts\/components)\/.*/, /(fonts)\/.*/],
|
|
7
7
|
dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
|
|
8
8
|
dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
|
|
9
9
|
transformFilename: function (file, hash) {
|