layui图标不显示 提示Failed to decode downloaded font解决办法
解决方法:build中加过滤存在多级目录要把目录多级处理定位:
<resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>static/Bootstrap/bootstrap/layui/font/*</exclude> <exclude>static/Bootstrap/bootstrap/layui/css/**</exclude> <exclude>static/Bootstrap/bootstrap/**</exclude> <exclude>**/*.xml</exclude> <exclude>**/*.setting</exclude> <exclude>**/*.json</exclude> <exclude>**/*.properties</exclude> <exclude>**/*.html</exclude> <exclude>**/*.map</exclude> <exclude>**/*.css</exclude> <exclude>**/*.gif</exclude> <exclude>**/*.png</exclude> <exclude>**/*.js</exclude> <exclude>**/*.eot</exclude> <exclude>**/*.svg</exclude> <exclude>**/*.ttf</exclude> <exclude>**/*.woff</exclude> <exclude>**/*.woff2</exclude> </excludes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>static/Bootstrap/bootstrap/layui/font/*</include> <include>static/Bootstrap/bootstrap/layui/css/**</include> <include>static/Bootstrap/bootstrap/**</include> <include>**/*.xml</include> <include>**/*.setting</include> <include>**/*.json</include> <include>**/*.properties</include> <include>**/*.html</include> <include>**/*.map</include> <include>**/*.css</include> <include>**/*.gif</include> <include>**/*.png</include> <include>**/*.js</include> <include>**/*.eot</include> <include>**/*.svg</include> <include>**/*.ttf</include> <include>**/*.woff</include> <include>**/*.woff2</include> </includes> </resource> </resources>
相关推荐
impress 2020-08-26
IT之家 2020-03-11
graseed 2020-10-28
zbkyumlei 2020-10-12
SXIAOYI 2020-09-16
jinhao 2020-09-07
liuqipao 2020-07-07
淡风wisdon大大 2020-06-06
yoohsummer 2020-06-01
chenjia00 2020-05-29
baike 2020-05-19
扭来不叫牛奶 2020-05-08
hxmilyy 2020-05-11
黎豆子 2020-05-07
xiongweiwei00 2020-04-29
Cypress 2020-04-25
冰蝶 2020-04-20