code: function processLess() {
      let index = 0;
      while (index < lessFilePool.length) {
          (function (index) {
              // debugger';
              if (lessFilePool[index].indexOf('.less') != -1) {
                  fs.readFile(lessFilePool[index], function (e, data) {
                      if (data) {
                          less.render(data.toString(), {
                              filename: lessFilePool[index]
                          }, function (e, output) {
                              if (e) {
                                  console.log(e);
                              } else {
                                  // 检查图片并转换base64
                                  cssImage(output.css, lessFilePool[index]).then(res => {
                                      saveToCss(res);
                                      lessFilePool[index] = '';
                                      doneOne();
                                  });
                              }
                          })
                      }
                  });
              }
              // 处理scss
              if (lessFilePool[index].indexOf('.scss') != -1) {
                  scss.render({
                      file: lessFilePool[index]
                  }, function (e, output) {
                      if (e) {
                          console.log(e);
                      } else {
                          // 检查图片并转换base64
                          cssImage(output.css, lessFilePool[index]).then(res => {
                              saveToCss(res);
                              lessFilePool[index] = '';
                              doneOne();
                          });
                      }
                  });
              }
  
              if (lessFilePool[index].indexOf('.css') != -1) {
                  fs.readFile(lessFilePool[index], function (e, data) {
                      if (e) {
                          console.log(e)
                      } else {
                          // 检查图片并转换base64
                          cssImage(data.toString(), lessFilePool[index]).then(res => {
                              saveToCss(res);
                              lessFilePool[index] = '';
                              doneOne();
                          });
                      }
                  });
              }
  
          })(index);
          index += 1
      }
  }
docs: 处理样式问题