久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

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

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

        <tfoot id='Jfk7y'></tfoot>

        Gulp注入不起作用

        Gulp inject not working(Gulp注入不起作用)
        <tfoot id='uBxNJ'></tfoot>

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

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

                <i id='uBxNJ'><tr id='uBxNJ'><dt id='uBxNJ'><q id='uBxNJ'><span id='uBxNJ'><b id='uBxNJ'><form id='uBxNJ'><ins id='uBxNJ'></ins><ul id='uBxNJ'></ul><sub id='uBxNJ'></sub></form><legend id='uBxNJ'></legend><bdo id='uBxNJ'><pre id='uBxNJ'><center id='uBxNJ'></center></pre></bdo></b><th id='uBxNJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uBxNJ'><tfoot id='uBxNJ'></tfoot><dl id='uBxNJ'><fieldset id='uBxNJ'></fieldset></dl></div>
                • <bdo id='uBxNJ'></bdo><ul id='uBxNJ'></ul>
                    <tbody id='uBxNJ'></tbody>
                  本文介紹了Gulp注入不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試使用 gulp-inject 將一些文件注入 PHP 文件.這是行不通的.我也嘗試過使用 HTML,但這不起作用.我的控制臺中的輸出顯示gulp-inject 6 files into test.html"但是沒有注入文件.# of files 是正確的,因為我在 Gulp 文件中查看的目錄中有 6 個 JavaScript 文件.這是我的 Guilp 任務:

                  I'm try to use gulp-inject to inject some files into a PHP file. This is not working. I tried using HTML as well but that isn't working. The output in my console says "gulp-inject 6 files into test.html" however there's no files injected. The # of files is correct because I do have 6 JavaScript files in the directory i'm looking at in my Gulp file. Here's my Guilp task:

                  var inject = require('gulp-inject');
                  
                  gulp.task('build',function() {
                  
                      return gulp.src("src/test.html")
                      .pipe(inject(gulp.src("src/vendor/js/*.js")));
                  
                  });
                  

                  我的 test.html 文件如下所示:

                  My test.html file looks like this:

                  <!DOCTYPE html>
                  <html>
                  <head>
                      <title>My index</title>
                      <!-- inject:css -->
                      <!-- endinject -->
                  </head>
                  <body>
                  
                  <!-- inject:js -->
                  <!-- endinject -->
                  </body>
                  </html>
                  

                  同樣,src/vendor/js 目錄包含 6 個文件,控制臺中 Gulp 的輸出顯示 6 個文件已添加到 test.html,但沒有添加任何內容.我的目標是用 PHP 做到這一點,但沒有工作,所以我在這里用 HTML 進行測試,但仍然沒有.

                  Again, the src/vendor/js directory contains 6 files and the output from Gulp in the console is saying 6 files were added to test.html, but nothing is added. My goal was to do this with PHP but wasn't working so I was testing here with HTML and still, nothing.

                  有什么想法嗎?

                  非常感謝.

                  推薦答案

                  文件被注入...但只是在內存中!您實際上必須將結果通過管道傳輸到文件:

                  The files were injected...but just in memory ! You actually have to pipe the result to a file :

                  gulp.task('build',function() {
                      return gulp.src("src/test.html")
                      .pipe(inject(gulp.src("src/vendor/js/*.js")))
                      .pipe(gulp.dest('./dist')); // or .src/ or whatever
                  });
                  

                  自述文件中還有其他示例

                  這篇關于Gulp注入不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                • <small id='XcjwV'></small><noframes id='XcjwV'>

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

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

                          <tbody id='XcjwV'></tbody>

                            主站蜘蛛池模板: 中文字幕的av | 一级毛片在线看 | 国精日本亚洲欧州国产中文久久 | 国产91中文 | 国产成人精品区一区二区不卡 | 成人在线精品视频 | 国产在线精品一区二区 | 91精品一区 | 国产成人精品一区二区三区 | 国产成人精品免高潮在线观看 | 精品国产一区二区三区性色av | 精品视频久久久久久 | 色精品视频 | 成人免费一区二区三区视频网站 | 国产小视频精品 | 国产一级在线观看 | 国产精品久久久久久久久久久久久久 | 精品久久久久香蕉网 | 精品国产一区二区国模嫣然 | 精品久久国产老人久久综合 | 日本成人福利视频 | av乱码| 国产欧美精品一区二区 | 在线午夜电影 | 一区二区三区日 | 欧美国产日韩在线 | 久久久久www | 欧美日韩国产一区二区三区 | 白浆在线 | 欧美一级黄色片免费观看 | 亚洲视频免费在线播放 | 欧美精品一区二区三区蜜桃视频 | 亚州综合在线 | 国产成人精品福利 | 国产精品永久免费视频 | 成人黄视频在线观看 | 美女视频一区二区三区 | 国产亚洲精品久久久久动 | 国产乱码精品一区二区三区五月婷 | 日韩精品专区在线影院重磅 | 久久在线|