Skip to content

Commit

Permalink
Use webpack5 syntax to include woff2 in bundle and remove url-loader (#…
Browse files Browse the repository at this point in the history
…2217)

* Use webpack5 syntax to include woff2 in bundle and remove url-load that's no longer in use
  • Loading branch information
markmonster authored Jul 26, 2024
1 parent 42c2c73 commit 73fdcc6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/HealthChecks.UI/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ module.exports = {
// all files with a `.ts`, `.cts`, `.mts` or `.tsx` extension will be handled by `ts-loader`
{ test: /\.tsx?$/, loader: "ts-loader" },
{
loader: 'url-loader',
test: /\.(png|jpg|gif|svg|woff2)$/
test: /\.(png|jpg|gif|svg|woff2)$/,
type: 'asset/inline'
},
{
test: /\.css$/i,
Expand Down
39 changes: 0 additions & 39 deletions src/HealthChecks.UI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/HealthChecks.UI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"ts-loader": "^9.4.2",
"typescript": "5.0.4",
"uglifycss": "0.0.29",
"url-loader": "4.1.0",
"webpack": "5.80.0",
"webpack-cli": "5.0.2"
}
Expand Down

0 comments on commit 73fdcc6

Please sign in to comment.