Skip to content

Instantly share code, notes, and snippets.

@peterkeating
Created September 3, 2012 13:09
Show Gist options
  • Select an option

  • Save peterkeating/3609232 to your computer and use it in GitHub Desktop.

Select an option

Save peterkeating/3609232 to your computer and use it in GitHub Desktop.
Removes the <script> tag that includes the LESS client side JavaScript library.
<property name="js.libs.dir" value="${basedir}/js/vendor" />
<property name="pages-files" value="header.php" />
<property name="intermediate.dir" value="${basedir}/deploy/intermediate" />
<!--
Removes the client side less javascript library.
-->
<target name="-removeclientless">
<replaceregexp match="&lt;script src=&quot;.*${js.libs.dir}/less-1.3.0.min.js&quot;.*&gt;" replace=" " flags="m">
<fileset dir="${intermediate.dir}" includes="${page-files}"/>
</replaceregexp>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment