Skip to content

Commit

Permalink
fix: replace url-loader with webpack's asset module
Browse files Browse the repository at this point in the history
  • Loading branch information
YHhaoareyou committed Oct 27, 2021
1 parent 47e66a0 commit 43d1463
Show file tree
Hide file tree
Showing 14 changed files with 1,453 additions and 1,456 deletions.
4 changes: 1 addition & 3 deletions blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"@types/systemjs": "^6.1.1",
"@types/webpack-env": "^1.16.2",
"axios": "^0.21.4",
"file-loader": "^6.2.0",
"i18next": "^19.9.2",
"prop-types": "^15.7.2",
"react": "^17.0.2",
Expand All @@ -78,7 +77,6 @@
"react-markdown": "^5.0.3",
"react-responsive": "^8.2.0",
"react-router-dom": "^5.3.0",
"styled-components": "^5.3.1",
"url-loader": "^4.1.1"
"styled-components": "^5.3.1"
}
}
445 changes: 234 additions & 211 deletions blog/pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions blog/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = (webpackConfigEnv, argv) => {
module: {
rules: [
{
test: /\.(jpe?g|png|gif|svg)(\?[a-z0-9=.]+)?$/,
loader: "url-loader",
test: /\.(jpe?g|png|gif|woff|woff2|eot|ttf|otf|svg)(\?[a-z0-9=.]+)?$/,
type: 'asset/inline'
},
{
test: /\.(woff(2)?|ttf|eot|otf)(\?v=\d+\.\d+\.\d+)?$/,
Expand Down
4 changes: 1 addition & 3 deletions campus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"style-loader": "^2.0.0",
"ts-config-single-spa": "^2.0.1",
"typescript": "^4.4.3",
"url-loader": "^4.1.1",
"webpack": "^5.52.1",
"webpack-cli": "^4.8.0",
"webpack-config-single-spa-react": "4.0.2",
Expand Down Expand Up @@ -83,7 +82,6 @@
"react-responsive-carousel": "^3.2.21",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^2.0.3",
"styled-components": "^5.3.1",
"url-loader": "^4.1.1"
"styled-components": "^5.3.1"
}
}
Loading

0 comments on commit 43d1463

Please sign in to comment.