1. <i id='dXV5A'><tr id='dXV5A'><dt id='dXV5A'><q id='dXV5A'><span id='dXV5A'><b id='dXV5A'><form id='dXV5A'><ins id='dXV5A'></ins><ul id='dXV5A'></ul><sub id='dXV5A'></sub></form><legend id='dXV5A'></legend><bdo id='dXV5A'><pre id='dXV5A'><center id='dXV5A'></center></pre></bdo></b><th id='dXV5A'></th></span></q></dt></tr></i><div id='dXV5A'><tfoot id='dXV5A'></tfoot><dl id='dXV5A'><fieldset id='dXV5A'></fieldset></dl></div>

        <bdo id='dXV5A'></bdo><ul id='dXV5A'></ul>
    2. <small id='dXV5A'></small><noframes id='dXV5A'>

    3. <legend id='dXV5A'><style id='dXV5A'><dir id='dXV5A'><q id='dXV5A'></q></dir></style></legend>

        <tfoot id='dXV5A'></tfoot>

        Gulp.js - 在连接时重写嵌入在 css 中的 url

        时间:2023-05-28
        <legend id='xgZiZ'><style id='xgZiZ'><dir id='xgZiZ'><q id='xgZiZ'></q></dir></style></legend>

          <small id='xgZiZ'></small><noframes id='xgZiZ'>

              <i id='xgZiZ'><tr id='xgZiZ'><dt id='xgZiZ'><q id='xgZiZ'><span id='xgZiZ'><b id='xgZiZ'><form id='xgZiZ'><ins id='xgZiZ'></ins><ul id='xgZiZ'></ul><sub id='xgZiZ'></sub></form><legend id='xgZiZ'></legend><bdo id='xgZiZ'><pre id='xgZiZ'><center id='xgZiZ'></center></pre></bdo></b><th id='xgZiZ'></th></span></q></dt></tr></i><div id='xgZiZ'><tfoot id='xgZiZ'></tfoot><dl id='xgZiZ'><fieldset id='xgZiZ'></fieldset></dl></div>
              <tfoot id='xgZiZ'></tfoot>
                <tbody id='xgZiZ'></tbody>

                <bdo id='xgZiZ'></bdo><ul id='xgZiZ'></ul>

                1. 本文介绍了Gulp.js - 在连接时重写嵌入在 css 中的 url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在使用 Gulp 连接来自不同目录的多个 css 文件(Bower 管理的依赖项).Font-awesome 是这些依赖项之一,它包含对其字体 url(../font....) 的相对引用.当 css 文件被连接并放置在不同的目录中时,这个相对 url 显然是错误的.是否有处理此问题的最佳实践?

                  I'm using Gulp to concatenate several css files from different directories (Bower managed dependencies). Font-awesome is one of these dependencies and it contains a relative reference to its fonts url(../font....). When the css file is concatenated and placed in a different directory this relative url will obviously be wrong. Is there a best practice for dealing with this?

                  推荐答案

                  另一个选项是 gulp-css-rebase-urls,它是为解决这个问题而构建的.

                  Another option is gulp-css-rebase-urls which was built to address this problem.

                  https://www.npmjs.com/package/gulp-css-变基网址

                  这篇关于Gulp.js - 在连接时重写嵌入在 css 中的 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 gulp webpack-stream 生成正确的命名文件? 下一篇:如果满足条件,则停止 Gulp 任务

                  相关文章

                  最新文章

                    <legend id='Z01wa'><style id='Z01wa'><dir id='Z01wa'><q id='Z01wa'></q></dir></style></legend>

                  1. <tfoot id='Z01wa'></tfoot>

                        <bdo id='Z01wa'></bdo><ul id='Z01wa'></ul>
                    1. <i id='Z01wa'><tr id='Z01wa'><dt id='Z01wa'><q id='Z01wa'><span id='Z01wa'><b id='Z01wa'><form id='Z01wa'><ins id='Z01wa'></ins><ul id='Z01wa'></ul><sub id='Z01wa'></sub></form><legend id='Z01wa'></legend><bdo id='Z01wa'><pre id='Z01wa'><center id='Z01wa'></center></pre></bdo></b><th id='Z01wa'></th></span></q></dt></tr></i><div id='Z01wa'><tfoot id='Z01wa'></tfoot><dl id='Z01wa'><fieldset id='Z01wa'></fieldset></dl></div>

                    2. <small id='Z01wa'></small><noframes id='Z01wa'>