Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix svg and font loader config of webpack.dist.js #423

Merged

Conversation

kyoyadmoon
Copy link
Member

@kyoyadmoon kyoyadmoon commented Dec 28, 2023

Purpose

發現最後打包出來的 Svg 沒辦法正常顯示,查了一下 webpack 5 已經不需要 file-loader 了

  • 調整了 font 和 svg 檔案的 webpack 設定
  • 移除 file-loader

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2112c8a) 97.99% compared to head (422b543) 97.99%.

Additional details and impacted files
@@                    Coverage Diff                     @@
##           project/upgrade-react-v18     #423   +/-   ##
==========================================================
  Coverage                      97.99%   97.99%           
==========================================================
  Files                             69       69           
  Lines                           1443     1443           
  Branches                         279      279           
==========================================================
  Hits                            1414     1414           
  Misses                            29       29           

Copy link

sonarcloud bot commented Dec 28, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@kyoyadmoon kyoyadmoon marked this pull request as ready for review December 29, 2023 03:34
@kyoyadmoon kyoyadmoon merged commit d2ce155 into project/upgrade-react-v18 Jan 3, 2024
6 checks passed
@kyoyadmoon kyoyadmoon deleted the build/webpack-v5-font-and-svg-loader branch January 3, 2024 09:59
@zhusee2 zhusee2 added this to the v7 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants