Skip to content

Commit

Permalink
removed css prefixers, doing this with regex now. Updated regex to no…
Browse files Browse the repository at this point in the history
…t add another /css/
  • Loading branch information
Divya Manian committed Aug 16, 2011
1 parent c4ef2f3 commit 9fe23b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
23 changes: 4 additions & 19 deletions build/build.xml
Expand Up @@ -516,15 +516,8 @@
</concat>

<checksum file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" algorithm="sha" property="scripts.sha" />
<if>
<isset property="js.prefix" />
<then>
<property name="scripts.js" value="${js.prefix}/${scripts.sha}.js" />
</then>
<else>
<property name="scripts.js" value="${dir.js}/${scripts.sha}.js" />
</else>
</if>

<property name="scripts.js" value="${dir.js}/${scripts.sha}.js" />
<copy file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" tofile="${dir.publish}/${dir.js}/${scripts.sha}.js" />
</target>

Expand Down Expand Up @@ -623,7 +616,7 @@

<echo message="Updating the HTML with the new css filename: ${style.css}"/>

<replaceregexp match="&lt;link rel=['&quot;]?stylesheet['&quot;]?\s+href=['&quot;]?(.*)/style.css(?:\?.*)?['&quot;]?\s*&gt;"
<replaceregexp match="&lt;link rel=['&quot;]?stylesheet['&quot;]?\s+href=['&quot;]?(.*)/?css/style.css(?:\?.*)?['&quot;]?\s*&gt;"
replace="&lt;link rel='stylesheet' href='\1/${style.css}'&gt;" flags="m">
<fileset dir="${dir.intermediate}" includes="${page-files}"/>
</replaceregexp>
Expand Down Expand Up @@ -901,15 +894,7 @@
</apply>

<checksum file="${dir.intermediate}/${dir.css}/style-concat.min.css" algorithm="sha" property="css.sha" />
<if>
<isset property="css.prefix" />
<then>
<property name="style.css" value="${css.prefix}/${css.sha}.css" />
</then>
<else>
<property name="style.css" value="${css.sha}.css" />
</else>
</if>
<property name="style.css" value="${dir.css}/${css.sha}.css" />
<copy file="${dir.intermediate}/${dir.css}/style-concat.min.css" tofile="${dir.publish}/${dir.css}/${css.sha}.css" />

<echo message="Minifying any unconcatenated css files..."/>
Expand Down
10 changes: 0 additions & 10 deletions build/config/project.properties
Expand Up @@ -74,16 +74,6 @@ env =
# dir.css
# dir.images

# Optional: Maintain custom prefix on concatenated files.
#
# PHP:
# css.prefix = <?php echo base_url(); ?>css
# js.prefix = <?php echo base_url(); ?>js
#
# App Engine:
# css.prefix = /css
# js.prefix = /js

# Override default JSHint Options (see http://jshint.com/ for description of options)
#tool.jshint.opts =

Expand Down

0 comments on commit 9fe23b3

Please sign in to comment.