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

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

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

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

    3. console.log 到標(biāo)準(zhǔn)輸出的 gulp 事件

      console.log to stdout on gulp events(console.log 到標(biāo)準(zhǔn)輸出的 gulp 事件)

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

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

                <bdo id='qCRBv'></bdo><ul id='qCRBv'></ul>
                  <tbody id='qCRBv'></tbody>
                <tfoot id='qCRBv'></tfoot>
              • 本文介紹了console.log 到標(biāo)準(zhǔn)輸出的 gulp 事件的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                限時(shí)送ChatGPT賬號(hào)..

                我想在 gulp 任務(wù)正在運(yùn)行或已經(jīng)運(yùn)行時(shí)登錄到標(biāo)準(zhǔn)輸出(配置環(huán)境).

                I want to log to stdout (the config environment) when a gulp task is running or has run.

                類似這樣的:

                gulp.task('scripts', function () {
                  var enviroment = argv.env || 'development';
                  var config = gulp.src('config/' + enviroment + '.json')
                      .pipe(ngConstant({name: 'app.config'}));
                  var scripts = gulp.src('js/*');
                
                  return es.merge(config, scripts)
                    .pipe(concat('app.js'))
                    .pipe(gulp.dest('app/dist'))
                    .on('success', function() { 
                      console.log('Configured environment: ' + environment);
                    });
                });
                

                我不確定我應(yīng)該響應(yīng)什么事件或在哪里可以找到這些事件的列表.任何指針?非常感謝.

                I am not sure what event I should be responding to or where to find a list of these. Any pointers? Many thanks.

                推薦答案

                (2017 年 12 月,提供日志記錄的 gulp-util 模塊,已棄用.Gulp 團(tuán)隊(duì)建議開發(fā)人員將此功能替換為 fancy-log 模塊.此答案已更新以反映這一點(diǎn).)

                (In December 2017, the gulp-util module, which provided logging, was deprecated. The Gulp team recommended that developers replace this functionality with the fancy-log module. This answer has been updated to reflect that.)

                fancy-log 提供日志記錄,最初構(gòu)建由 Gulp 團(tuán)隊(duì)提供.

                fancy-log provides logging and was originally built by the Gulp team.

                var log = require('fancy-log');
                log('Hello world!');
                

                要添加日志記錄,Gulp 的 API 文檔告訴我們.src 返回:

                To add logging, Gulp's API documentation tell us that .src returns:

                返回可以通過管道傳輸?shù)讲寮?Vinyl 文件流.

                Returns a stream of Vinyl files that can be piped to plugins.

                Node.js 的 Stream 文檔提供了事件列表.放在一起,這里有一個(gè)例子:

                Node.js's Stream documentation provides a list of events. Put together, here's an example:

                gulp.task('default', function() {
                    return gulp.src('main.scss')
                        .pipe(sass({ style: 'expanded' }))
                        .on('end', function(){ log('Almost there...'); })
                        .pipe(minifycss())
                        .pipe(gulp.dest('.'))
                        .on('end', function(){ log('Done!'); });
                });
                

                注意:end 事件可能會(huì)在插件完成之前被調(diào)用(并且已經(jīng)發(fā)送了它自己的所有輸出),因?yàn)楫?dāng)所有數(shù)據(jù)都已刷新到底層系統(tǒng)"時(shí)會(huì)調(diào)用該事件".

                Note: The end event may be called before the plugin is complete (and has sent all of its own output), because the event is called when "all data has been flushed to the underlying system".

                這篇關(guān)于console.log 到標(biāo)準(zhǔn)輸出的 gulp 事件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

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

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

                            <tbody id='Pfydf'></tbody>

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

                          <legend id='Pfydf'><style id='Pfydf'><dir id='Pfydf'><q id='Pfydf'></q></dir></style></legend>
                          主站蜘蛛池模板: 国产精品久久久99 | 91中文在线观看 | 午夜影院在线观看 | 91精品国产一区 | 久久久成人一区二区免费影院 | 亚洲图片视频一区 | 中文字幕在线一区 | 午夜精品久久久 | 欧美一区二区三区在线观看视频 | 视频在线一区二区 | 亚洲高清视频在线观看 | 免费人成在线观看网站 | www.久久久| 欧美久久久久久久久中文字幕 | 色爱综合网| 影音先锋中文字幕在线观看 | 国产成人黄色 | 亚洲精品亚洲人成人网 | 我要看黄色录像一级片 | 国产区精品 | 国产毛片av | 欧洲精品在线观看 | 颜色网站在线观看 | 日日夜夜av| 久久精品91久久久久久再现 | 在线四虎| 国产乱码精品一区二区三区忘忧草 | 一区中文字幕 | 一级片在线观看 | 亚洲午夜精品在线观看 | 九九综合九九 | 国产乱性| 国产精品高潮呻吟久久av野狼 | 欧洲亚洲精品久久久久 | 精品国产乱码一区二区三区 | 精品久久久久久久久久久久久久久久久 | 亚洲精品一区在线观看 | a级黄色毛片免费播放视频 国产精品视频在线观看 | 久久精品国产久精国产 | 国产清纯白嫩初高生在线播放视频 | 美女视频黄色片 |