码迷,mamicode.com
首页 > 其他好文 > 详细

layui图标不显示 提示Failed to decode downloaded font解决办法

时间:2020-02-24 16:46:34      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:source   css   rop   过滤   color   http   mic   col   ade   

解决方法: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>

技术图片

 

layui图标不显示 提示Failed to decode downloaded font解决办法

标签:source   css   rop   过滤   color   http   mic   col   ade   

原文地址:https://www.cnblogs.com/matoo-shi/p/12357495.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!