mod-build 3.6.75-beta.2 → 3.6.76-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 +4 -0
- package/gulp-tasks/grab-cdn.js +0 -10
- package/gulp-tasks/grab-shared-scripts.js +2 -1
- package/package-lock-1.json +35243 -0
- package/package.json +1 -1
- package/src/scripts/mod-form-contractor.js +69 -26
package/CHANGELOG.md
CHANGED
package/gulp-tasks/grab-cdn.js
CHANGED
|
@@ -24,7 +24,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
24
24
|
const { isQSPage, isWhiteLabel, domain } = siteData;
|
|
25
25
|
const isModWhiteLabel = isWhiteLabel && !isQSPage
|
|
26
26
|
const domainHasModernize = domain.indexOf('modernize') > -1;
|
|
27
|
-
const cssThemes = siteData && siteData.page && siteData.page.cssThemes;
|
|
28
27
|
|
|
29
28
|
let externalResources;
|
|
30
29
|
// listing of Static Resources sub-path and site destination paths
|
|
@@ -49,15 +48,6 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
49
48
|
Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
if (cssThemes) {
|
|
53
|
-
cssThemes.forEach(theme => {
|
|
54
|
-
const themeFileName = `_${theme}.scss`;
|
|
55
|
-
const themePath = `/quote/resources/shared-resources/styles/themes/${themeFileName}`;
|
|
56
|
-
|
|
57
|
-
Object.assign(externalResources, {[themePath]: ['/resources/styles/themes/', themeFileName]});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
51
|
// local dev files
|
|
62
52
|
const remoteFilesForLocalDev = {
|
|
63
53
|
'/quote/resources/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
|
|
@@ -22,7 +22,8 @@ var pathSubdirectory = '';
|
|
|
22
22
|
var componentFolderPath = '';
|
|
23
23
|
|
|
24
24
|
function replaceModalyticsSrc(gulp, gulpPlugins, siteSettings, siteData) {
|
|
25
|
-
const
|
|
25
|
+
const doNotIncludeSrc = siteData.siteData && siteData.siteData.isPathSubdirectory || siteData && siteData.isPathSubdirectory;
|
|
26
|
+
const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}${doNotIncludeSrc ? '' : '{{#if this.src}}{{this.src}}{{/if}}'}resources/scripts/mod-alytics/` : '/resources/scripts/mod-alytics/';
|
|
26
27
|
return gulp.src(`${siteSettings.srcFolder}/${componentFolderPath}/head/head.html`)
|
|
27
28
|
.pipe(replace(/".*(modalytics).*"/, `"${resourcePath}${fileNames.modAlyticsFileName}"`))
|
|
28
29
|
.pipe(gulp.dest(`${siteSettings.srcFolder}/${componentFolderPath}/head`));
|