使用gulp-angular-filesort时出错

时间:2016-03-13 19:52:17

标签: angularjs gulp

注入我的供应商和应用脚本时:

<?php
session_start();
include "db.php";

   echo'<table class="table table-bordered" >';
   echo"<tr>";
   echo"<td>No.</td>";
   echo"<td>Nama Masakan</td>";
   echo"<td>Jumlah</td>";
   echo"<td>Keterangan</td>";
   echo"<td></td>";
   echo"<td></td>";
   echo"<td></td>";
   echo"</tr>";

$query= mysql_query("SELECT * FROM `".$_SESSION["tabel"]."`");
if($row=mysql_fetch_row($query)>0){

   $i=1;
   
   
   while($row = mysql_fetch_array($query))
   {
       echo"<tr>";
	   echo"<td>";
	   echo $i;
	   echo"</td>";
	   echo"<td>{$row['nama_masakan']}</td>";
	   echo"<td><input type='text' name='jumlah[]' id='jumlah$i' disabled='true' value='{$row['jumlah']}'/> </td>";
	   echo"<td><input type='text' name='keterangan[]' id='keterangan$i' disabled='true' value='{$row['keterangan']}'/></td>";
	   echo"<td><button type='button' name='edit' id='edit$i' onClick='edit($i)'>Edit</button></td>";
	   echo"<td><button type='button' name='save' id='save$i' disabled='true' onClick='save($i)'>Save</button></td>";
	   echo"<td><button type='button' name='delete' id='del$i' onClick='del($i)'>Del</button></td>";
	   echo"</tr>";
	   $i++;
   } 
  
} else{
echo "Tidak ada Pesanan Makanan";	
}
 echo"</Table>";

?> 

</div>

启动此任务后,我收到了下一个错误:

[21:41:46]开始'injectDist'......

[21:41:46] gulp-debug:dist \ index.html

stream.js:94       扔掉//管道中未处理的流错误。             ^

错误:解析时出错:“index.html”,第1行:意外的令牌&lt;

如果删除“.pipe(gAngularFileSort())则不会发生错误。

如果仅使用.js扩展名的src文件,不明白为什么gulp-angular-filesort使用index.html播放?

1 个答案:

答案 0 :(得分:0)

尝试:

 .pipe(
      gInject(series(vendorSources, appSources).pipe(gAngularFileSort()),injectOptions)
 )

我没有使用流系列,但gulp.src运行良好。