Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 94ca684

Browse files
committed
fix(packages/webpack): webpack builds may have fonts in the wrong place
Fixes #6036
1 parent 03be3eb commit 94ca684

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/webpack/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ console.log('clientHome', process.env.CLIENT_HOME)
150150
* Note: these are _webpack plugins_ not Kui plugins; we will assemble
151151
* this list of webpack plugins as we go.
152152
*/
153-
const plugins = [new FontConfigWebpackPlugin()]
153+
const fontConfigOptions = contextRoot ? { name: `${contextRoot}/[name].[hash].[ext]` } : undefined
154+
console.log('fontConfig', fontConfigOptions || 'using the default settings')
155+
const plugins = [new FontConfigWebpackPlugin(fontConfigOptions)]
154156

155157
// any compression plugins?
156158
if (CompressionPlugin) {

0 commit comments

Comments
 (0)