Skip to content

Commit

Permalink
Merge branch 'yejeelee/promotions' of https://github.com/yejee94/type…
Browse files Browse the repository at this point in the history
…spec-azure into yejeelee/promotions
  • Loading branch information
yejee94 committed Feb 21, 2024
2 parents 2b2d675 + d9d3fe0 commit 2b7c3f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions packages/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,14 @@ const config: Config = {
return {
name: "custom-configure-webpack",
configureWebpack: (config, isServer, utils) => {
// Need to change the font rule to use asset/resource
const fontRule = config.module.rules.find(
(x) => typeof x === "object" && x.test?.toString().includes("ttf")
);
delete (fontRule as any).use;
(fontRule as any).type = "asset/resource";

return {
module: {
rules: [
{
test: /\.ttf$/,
use: ["file-loader"],
},
],
},
plugins: [
new MonacoWebpackPlugin({
languages: ["json"],
Expand Down

0 comments on commit 2b7c3f3

Please sign in to comment.