Skip to content

Commit

Permalink
fix: cherry pick the main lang-specific config fix + webpack lang c…
Browse files Browse the repository at this point in the history
…onfig fix when building multiple languages at the same time via #1265
  • Loading branch information
sghoweri committed Jul 12, 2019
1 parent 6067276 commit 318c9f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/build-tools/create-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function createWebpackConfig(buildConfig) {
),
config: {
prod: config.prod ? true : false,
lang: config.lang,
lang: JSON.stringify(config.lang),
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/// @group Settings: Typography
////

// so the recursive map merge used below works as expected
@import '../../02-tools/tools-map-recursive-merge/tools-map-recursive-merge';

/* ------------------------------------ *\
Japanese Specific Typography Styles
\* ------------------------------------ */
Expand Down Expand Up @@ -53,4 +56,11 @@
'xlarge': 2.8,
'xxlarge': 5.6
) !global;

// reference back to the "medium" size value (whatever it's currently set to)
// NOTE: this is how "sizeless" utility classes like `u-bolt-margin-bottom` get generated
$bolt-spacing-values: bolt-recursive-map-merge(
$bolt-spacing-values,
('': map-get($bolt-spacing-values, 'medium'))
) !global;
}

0 comments on commit 318c9f9

Please sign in to comment.