mod-build 3.6.7 → 3.6.8
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.8
|
|
4
|
+
|
|
5
|
+
- Adding a new `useRelativePathForResources` parameter for special use-cases that need to use a relative path for shared scripts (ie. the improvementcenter pages)
|
|
6
|
+
|
|
3
7
|
## 3.6.7
|
|
4
8
|
|
|
5
9
|
- Adding a new `grab-shared-scripts` gulp task grab the most recent version from `mod-analytics`. It will copy this version into the site's `resources/scripts/mod-alytics` folder & then update the src in the `head` shared component. Also updated `cache-bust` to ignore this file on build.
|
|
@@ -8,7 +8,7 @@ var path = require('path');
|
|
|
8
8
|
var modAlyticsFileName = '';
|
|
9
9
|
|
|
10
10
|
function replaceModalyticsSrcInHead(gulp, gulpPlugins, siteSettings, siteData) {
|
|
11
|
-
if (siteData.siteData && siteData.siteData.isQuotePage === true) {
|
|
11
|
+
if (siteData.siteData && siteData.siteData.isQuotePage === true || siteData.siteData && siteData.siteData.useRelativePathForResources === true) {
|
|
12
12
|
return gulp.src(siteSettings.srcFolder + '/shared-components/head/head.html')
|
|
13
13
|
.pipe(replace(/".*(modalytics).*"/, '"resources/scripts/mod-alytics/' + modAlyticsFileName + '"'))
|
|
14
14
|
.pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/head'));
|