[英]Compiling closure stylesheets in java (like SoyFileSet)
https://developers.google.com/closure/templates/docs/commands說明了如何使用命令行編譯Google樣式表。 我期待像SoyFileSet這樣的東西可以用來編譯Google模板。 是否有類似類的類用於編譯樣式表?
您可以從命令行中運行一個名為closure-stylesheets.jar的Java jar。 您可以在此處下載: https : //code.google.com/p/closure-stylesheets/downloads/list
我們通過這樣的Ant任務運行它:
<target name="closure-stylesheets">
<java jar="closure-stylesheets/closure-stylesheets.jar" fork="true" failonerror="true">
<arg line="--output-file ../styles/closure.css"/>
<arg value="closure-stylesheets/closure-main-def.gss"/>
<arg value="closure-stylesheets/closure.gss"/>
<arg value="closure-stylesheets/tree.css"/>
</java>
</target>
如果您正在使用Soy模板並希望使用closure的CSS重命名功能,請查看此處(我不熟悉使用它): https : //code.google.com/p/closure-stylesheets/#Renaming
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.