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

<tfoot id='UjX6w'></tfoot>

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

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

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

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

        這段將多個js文件合二為一的代碼有什么問題?

        What is wrong with this code that combines multiple js files to one?(這段將多個js文件合二為一的代碼有什么問題?)

        • <tfoot id='rgubv'></tfoot>

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

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

              <tbody id='rgubv'></tbody>
            • <legend id='rgubv'><style id='rgubv'><dir id='rgubv'><q id='rgubv'></q></dir></style></legend>

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

                  本文介紹了這段將多個js文件合二為一的代碼有什么問題?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有這個 node.js 代碼,它試圖將多個 js 文件縮小并合并到一個 js 文件中.

                  I have this node.js code that tries to minify and combine multiple js files to a single js file.

                  var concat = require('gulp-concat');
                  var gulp = require('gulp');
                  
                  gulp.task('scripts', function() {
                      //gulp.src(['./lib/file3.js', './lib/file1.js', './lib/file2.js'])
                      gulp.src(['./js/*.js'])
                          .pipe(concat('all.js'))
                          .pipe(uglify())
                          .pipe(gulp.dest('./dist/'))
                  });
                  

                  我所有的 js 文件都位于 js 文件夾中.我的 node.js 文件位于 js 文件夾上方.我期望單個縮小文件出現在 dist 文件夾中.運行代碼時,我什么也看不到,也沒有收到任何錯誤消息.可能出了什么問題?

                  All my js files are located in js folder. My node.js file is above the js folder. I am expecting the single minified file to appear in dist folder. I see nothing and get no error message when I run the code. What could have gone wrong?

                  推薦答案

                  Gulpfile.js:

                  "use strict";
                  
                  var concat = require('gulp-concat');
                  var gulp = require('gulp');
                  var uglify = require('gulp-uglify'); // Add gulp-uglify module to your script
                  
                  gulp.task('scripts', function() {
                      gulp.src('./js/*.js')
                          .pipe(concat('all.js'))
                          .pipe(uglify())
                          .pipe(gulp.dest('./dist/'));
                  });
                  

                  檢查 package.json 依賴項

                  運行 npm install 以驗證是否正確加載了所有依賴項.我認為這是您的問題:

                  Check package.json dependencies

                  Run npm install to verify that all dependencies correctly loaded. I think this was your issue:

                  {
                      "dependencies": {
                          "gulp-concat": "2.x",
                          "gulp": "3.x",
                          "gulp-uglify": "1.x"
                      }
                  }
                  

                  這篇關于這段將多個js文件合二為一的代碼有什么問題?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 崩潰)

                    • <bdo id='cEdsA'></bdo><ul id='cEdsA'></ul>
                      <legend id='cEdsA'><style id='cEdsA'><dir id='cEdsA'><q id='cEdsA'></q></dir></style></legend>
                      • <small id='cEdsA'></small><noframes id='cEdsA'>

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

                            主站蜘蛛池模板: 亚洲情综合五月天 | 一区二区三区免费 | 久久久国产精品视频 | 青草久久免费视频 | 九色av| 国产一区二区三区欧美 | 欧洲一区二区三区 | 国产高清精品一区二区三区 | www国产成人免费观看视频,深夜成人网 | 欧美理论片在线观看 | 成人午夜激情 | 亚洲激情综合 | 精品国产乱码久久久久久丨区2区 | 日日夜夜天天综合 | 久久精品国产99国产精品亚洲 | 偷拍自拍第一页 | 一区二区精品 | 欧美日韩亚洲视频 | 国产精品一区二区在线 | 日本三级做a全过程在线观看 | 少妇精品久久久久久久久久 | 人人射人人插 | 亚洲网站在线观看 | 午夜私人影院在线观看 | 日韩高清黄色 | 日本不卡一区二区三区在线观看 | 成人国产在线观看 | 岛国av在线免费观看 | 亚洲国产一区二区视频 | 成人一区av | 97精品久久 | 久久久综合久久 | 精品一区二区三区在线观看国产 | 精品久久久久久18免费网站 | 久草新在线 | 亚洲经典一区 | 污片在线免费观看 | 久久久一区二区三区 | 久久久久久久久久性 | 久久在线看 | 不卡的av一区 |