第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

“grunt watch”總是在致命錯(cuò)誤后停止觀看 - 如何讓它在幾秒鐘后自動(dòng)重試?

“grunt watch”總是在致命錯(cuò)誤后停止觀看 - 如何讓它在幾秒鐘后自動(dòng)重試?

躍然一笑 2021-10-21 13:36:47
在某些項(xiàng)目中,我將 Grunt 用于 SASS 編譯等任務(wù)?;旧纤拖褚粋€(gè)魅力,但只要我在 SASS 文件中輸入,顯然有時(shí)會(huì)發(fā)生錯(cuò)誤,因?yàn)槲覜](méi)有完成。我的 Gruntfile 的 watch 任務(wù)是這樣的:// watch fileswatch: {    sass: {        files: ['web/var/static/**/*.scss','web/var/static/lib/**','web/var/static/js/*.js'],        tasks: ['default']    }},我從grunt watchcli 開(kāi)始。Grunt 日志中的示例錯(cuò)誤:Completed in 1.968s at Wed Sep 18 2019 13:43:01 GMT+0200 (Central European Summer Time) - Waiting...>> File "web/var/static/sass/layout/footer.scss" changed.Running "sass:dist" (sass) taskRunning "autoprefixer:dist" (autoprefixer) task>> 4 autoprefixed stylesheets created.Running "cssmin:dist" (cssmin) task>> 4 files created. 706.54 kB → 598.46 kBRunning "concat:dist" (concat) taskRunning "uglify:main" (uglify) taskDone.Completed in 1.769s at Wed Sep 18 2019 13:43:25 GMT+0200 (Central European Summer Time) - Waiting...>> File "web/var/static/sass/layout/footer.scss" changed.Running "sass:dist" (sass) taskFatal error: Error: property "ul" must be followed by a ':'        on line 52 of web/var/static/sass/layout/footer.scss        from line 13 of web/var/static/sass/main.scss>>     ul   ----^如果發(fā)生這種情況,我總是必須重新運(yùn)行任務(wù),因?yàn)間runt 停止觀看。這意味著:打開(kāi)控制臺(tái)窗口停止當(dāng)前任務(wù)重新開(kāi)始任務(wù)更改文件這真的是在放緩。有沒(méi)有人遇到過(guò)類似的問(wèn)題?發(fā)生新文件更改后,如何在出錯(cuò)后自動(dòng)重試 grunt?
查看完整描述

1 回答

?
鳳凰求蠱

TA貢獻(xiàn)1825條經(jīng)驗(yàn) 獲得超4個(gè)贊

該spawn方法返回對(duì)生成的孩子的引用。當(dāng)孩子退出時(shí),doneFunction調(diào)用 。您可以在出現(xiàn)錯(cuò)誤時(shí)從以下函數(shù)重試:


function doneFunction(error, result, code) {

  // If the exit code was non-zero and a fallback wasn't specified, an Error

  // object, otherwise null.

  error

  // The result object is an object with the properties .stdout, .stderr, and

  // .code (exit code).

  result

  // When result is coerced to a string, the value is stdout if the exit code

  // was zero, the fallback if the exit code was non-zero and a fallback was

  // specified, or stderr if the exit code was non-zero and a fallback was

  // not specified.

  String(result)

  // The numeric exit code.

  code

}


查看完整回答
反對(duì) 回復(fù) 2021-10-21
  • 1 回答
  • 0 關(guān)注
  • 200 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)