2015-05-25 35 views
-1

我已經科爾多瓦/ PhoneGap的特定腳本已被列入指定的區域在我index.html哪裏..​​.什麼咕嚕任務實際執行的縮進

<!-- cordova:js --> 
<!-- endcordova --> 

但這裏需要注意的是,這通常意如下圖所示:

enter image description here

我使用​​任務這一點。是動態生成的這個配置,但把它放下,無論如何,決策意識的緣故...

replace: { 
    plugins: { 
     options: { 
      usePrefix: false, 
      patterns: [ 
       { 
        match: '<!-- cordova:js -->', 
        replace: '<!-- cordova:js -->;line1;line2;line3;'.replace(';', '\n') 
       } 
      ] 
     }, 
     files: [ 
      //files you want to replace... 
     ] 
    } 
} 

最終輸出看起來是這樣的:

enter image description here

我希望得到這個縮進正確象下面這樣:

enter image description here

什麼是適當的任務呢?

回答