当出现在进行打包字体图标时一定要注意plugins中的注意书写,不然可能导致字体图标不显示。
{
//排除css/js/htm1资源
test: /\.(woff|woff2|ttf|eot|svg)$/,
type: "asset/resource",
generator: {
filename: "resources/[hash:10][ext][query]",
},
},
我就是因为多template加了一个s就导致图标显示不出来。可以观察浏览器中元素是否存在,如存在就不是语法问题