mod-build 3.6.71 → 3.6.73-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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.73
|
|
4
|
+
|
|
5
|
+
- Updating the `add-path-subdirectories` task to update paths that also start with `accessible-components`
|
|
6
|
+
|
|
7
|
+
## 3.6.72
|
|
8
|
+
|
|
9
|
+
- Updating "isFontPresent" flag name to "copyLocalFontFile"
|
|
10
|
+
|
|
3
11
|
## 3.6.71
|
|
4
12
|
|
|
5
13
|
- Implemented copy-font gulp task based on configuration . Also update cache-bust task to not to include font files.
|
|
@@ -11,7 +11,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
11
11
|
return `href="${pathSubdirectory}favicon.ico"`;
|
|
12
12
|
}))
|
|
13
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')) {
|
|
14
|
+
if (path.startsWith('src="images') || path.startsWith('src="scripts') || path.startsWith('src="shared-components') || path.startsWith('src="accessible-components')) {
|
|
15
15
|
return `src="${pathSubdirectory}${path.slice(5)}`;
|
|
16
16
|
}
|
|
17
17
|
return match;
|
|
@@ -23,7 +23,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
23
23
|
return match;
|
|
24
24
|
}))
|
|
25
25
|
.pipe(replace(/((href=")(images|styles|shared-components)\/[^"]+")/g, function(match, path) {
|
|
26
|
-
if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components')) {
|
|
26
|
+
if (path.startsWith('href="images') || path.startsWith('href="styles') || path.startsWith('href="shared-components') || path.startsWith('src="accessible-components')) {
|
|
27
27
|
return `href="${pathSubdirectory}${path.slice(6)}`;
|
|
28
28
|
}
|
|
29
29
|
return match;
|
package/gulp-tasks/build.js
CHANGED
|
@@ -16,7 +16,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
16
16
|
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
if (siteData.
|
|
19
|
+
if (siteData.copyLocalFontFile) {
|
|
20
20
|
sequenceOpts.push('copy-fonts');
|
|
21
21
|
}
|
|
22
22
|
|