DEV Community

Discussion on: Webpack 5 : Guide for beginners

Collapse
 
rrd15199784 profile image
rrd

Just wondering why don't we use asset/resource for images and fonts?
webpack.js.org/guides/asset-manage...

Collapse
 
anitaparmar26 profile image
anitaparmar26

Actually, If we try to use asset/resource then the actual filename has changed to something like 29822eaa871e8eadeaa4.png.

So we use workflow like src/assets/images,fonts,icons etc.. It will show the actual image/font name.

Thank you