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

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

      1. <small id='ZMMZn'></small><noframes id='ZMMZn'>

      2. 任何等效的 gulp 插件用于执行“grunt bower"?

        时间:2023-05-28

            <tfoot id='ghqPF'></tfoot>

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

                  <tbody id='ghqPF'></tbody>
                <legend id='ghqPF'><style id='ghqPF'><dir id='ghqPF'><q id='ghqPF'></q></dir></style></legend>

                  本文介绍了任何等效的 gulp 插件用于执行“grunt bower"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  使用 grunt,我可以使用命令 grunt bower(由 grunt-bower-requirejs) 为我的本地 bower 组件自动生成 RequireJS 配置文件.

                  With grunt, I could use command grunt bower (provided by grunt-bower-requirejs) to auto-generate RequireJS config file for my local bower components.

                  gulp 有没有插件可以执行类似的任务?

                  Is there any plugin for gulp to perform similar task?

                  推荐答案

                  注意 bowerRequireJS 是一个异步函数.因此,您需要使用回调(或同步返回 Promise)将该任务标记为异步,如下所示:

                  Mind that bowerRequireJS is an asynchronous function. So you would need to use a callback (or synchronously return a Promise) to mark that task as asynchronous like so:

                  gulp.task('bower', function(callback) {
                      var options = {
                          baseUrl: 'src',
                          config: 'src/app/require.config.js',
                          transitive: true
                      };
                  
                      bowerRequireJS(options, function (rjsConfigFromBower) {
                          callback();
                      });
                  });
                  

                  这篇关于任何等效的 gulp 插件用于执行“grunt bower"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Gulp 手表不工作 下一篇:获取vscode中任务文件的相对路径

                  相关文章

                  最新文章

                1. <legend id='fP8JU'><style id='fP8JU'><dir id='fP8JU'><q id='fP8JU'></q></dir></style></legend>
                  1. <tfoot id='fP8JU'></tfoot>

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

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

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