JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 272 forks source link

In webpack4, 5, the same configuration, the packaging structure is different, resulting in SVG rendering is not out #445

Open codcer opened 3 years ago

codcer commented 3 years ago

image image image

code:

<div className={styles.qoq}>
    <span className={styles.qoqOrYoy}>Up</span>
    <SvgIcon className={styles.icon} iconName={funToUseWhichIcon(qoq)} />
    <span className={styles.per}>{resolveStringData(qoq) || '/'}</span>
 </div>

svg is not out

xyxiao001 commented 2 years ago

maybe you should ignore webpack5 default type image

zy1281539626 commented 2 years ago

maybe you should ignore webpack5 default type image

6666