问题描述:
在使用webpack5加载图片出现错误
Module parse failed: Unexpected character ' ' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
原因分析:
加载图片格式不对,但是换png/jpeg/gif都可以,就jpg不行,最后发现是url-loader加载图片资源正则没有添加jpg