mod-build 3.6.75-beta.1 → 3.6.75-beta.2

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.
@@ -21,9 +21,10 @@ function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName)
21
21
  module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
22
22
  return function() {
23
23
  const { nodeEnv, isLocal } = siteSettings;
24
- const { isQSPage, isWhiteLabel, domain, installThemes } = siteData;
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;
27
28
 
28
29
  let externalResources;
29
30
  // listing of Static Resources sub-path and site destination paths
@@ -48,8 +49,13 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
48
49
  Object.assign(externalResources, {'/quote/resources/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
49
50
  }
50
51
 
51
- if (installThemes) {
52
- Object.assign(externalResources, {'/quote/resources/shared-resources/styles/themes/': ['/resources/styles/themes/', '*']});
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
+ });
53
59
  }
54
60
 
55
61
  // local dev files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.75-beta.1",
3
+ "version": "3.6.75-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",