瀏覽代碼

improve(dev): live the std out/err when watch CSS bulid

charlie 4 年之前
父節點
當前提交
097989ee6f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      gulpfile.js

+ 4 - 1
gulpfile.js

@@ -14,7 +14,10 @@ const resourceFilePath = path.join(resourcesPath, '**')
 
 const css = {
   watchCSS () {
-    return exec(`yarn css:watch`, {})
+    return cp.spawn(`yarn css:watch`, {
+      shell: true,
+      stdio: 'inherit'
+    })
   },
 
   buildCSS (...params) {