久久久久久久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 文件夾上方.我期望單個縮小文件出現(xiàn)在 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"
                      }
                  }
                  

                  這篇關(guān)于這段將多個js文件合二為一的代碼有什么問題?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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 以使其以不同的方式運行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務(wù))
                  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>

                            主站蜘蛛池模板: 欧美日韩精品一区二区三区四区 | 毛片一区二区 | 精品一区二区三区在线观看国产 | 精品国产乱码久久久久久影片 | 911精品美国片911久久久 | 97伊人| 久久三区 | 久久伊人青青草 | 精品国产一区二区三区四区在线 | 亚洲免费影院 | 欧美日韩不卡合集视频 | 亚洲人人| 91免费在线 | 国产欧美日韩精品在线观看 | 免费观看av网站 | 亚洲欧美日韩电影 | 久久一视频 | 综合久久综合久久 | 亚洲第一在线 | 亚洲高清在线视频 | 成人久久18免费网站图片 | 久久精品一区二 | 亚洲欧美成人在线 | 色永久| 91精品91久久久 | 国产成人精品999在线观看 | 中文字幕在线播放第一页 | 成人在线免费av | av在线免费观看网址 | 国产精品黄色 | 亚洲精品免费视频 | 欧美成人综合 | 综合久| 成人在线视频一区二区三区 | 久久久69 | 亚洲精品一区二区在线观看 | 不卡一二三区 | 99精品99 | 天天干天天操天天爽 | 久久r久久| 免费视频成人国产精品网站 |