Skip to content

Commit ba8b320

Browse files
committed
Simplify and clarify Webpack font config
1 parent fa4dd08 commit ba8b320

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/gulpfile.ts/webpack.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ export const config: webpack.Configuration = {
5757
]
5858
},
5959
{
60-
test: /\.(woff(2)?|ttf|eot|svg)$/,
60+
test: /\.(woff(2)?|ttf|eot)$/,
6161
use: [
6262
{
6363
loader: 'file-loader',
6464
options: {
6565
name: '[name].[ext]',
6666
outputPath: 'fonts/',
67+
// We need this to make Webpack use the correct path for the fonts.
68+
// Without this, the CSS file will use `url([object Module])`
6769
esModule: false
6870
}
6971
},

0 commit comments

Comments
 (0)