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>

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

相关推荐