项目场景:
提示:使用的打包工具是webpack,然后图片格式引入了avif格式,npm run serve的时候,一直报没有loader的错
Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle thisfile type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
解决方案:
提示:使用的一个数组,将路径保存在数组中,再引入,不知道为啥这样就可以实现了,有大佬知道的麻烦指导一下