Article From:https://www.cnblogs.com/Richard-Tang/p/9968456.html

webpackSVG is used when packaging css, so SVG must be wrapped in double quotation marks.

But MUI defaults to single quotation marks, so errors occur when packaged with web packages.


Here, find the mui. CSS file, use the uncompressed version, so that it is better to find the location of SVG using double quotation marks, web pack will compress CSS after packaging.

Replace single quotation marks at the beginning and end with double quotation marks

Compile again

 

Open the / dist / index. HTML file and display it properly.

 

Leave a Reply

Your email address will not be published. Required fields are marked *