mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build: Replace filename references in base/all.min.css. Fixes #6634 - minified css does not @include minified css files.
Also make a copy of images to fix relative paths.
This commit is contained in:
parent
0c3e56dd7d
commit
812c274a33
@ -42,7 +42,7 @@
|
||||
<property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
|
||||
<property description="YUI Compressor" name="yuicompressor-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
|
||||
|
||||
<target name="deploy-release" depends="clean, docs-download, copy, minify, replace-version, prepend-header, zip" description="Release builder">
|
||||
<target name="deploy-release" depends="clean, copy, minify, replace-version, prepend-header, zip" description="Release builder">
|
||||
</target>
|
||||
|
||||
<target name="replace-version">
|
||||
@ -196,10 +196,22 @@
|
||||
<mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
|
||||
<targetfile/>
|
||||
</apply>
|
||||
|
||||
|
||||
<replaceregexp match=".css" replace=".min.css" flags="g">
|
||||
<fileset dir="${dist.dir}/themes/base/minified/">
|
||||
<include name="*.base.min.css"/>
|
||||
<include name="*.all.min.css"/>
|
||||
</fileset>
|
||||
</replaceregexp>
|
||||
|
||||
<!-- make a copy of all theme images to ensure that relative paths in minified css files work -->
|
||||
<copy todir="${dist.dir}/themes/base/minified/images" >
|
||||
<fileset dir="${ui.dir}/themes/base/images" />
|
||||
</copy>
|
||||
|
||||
<echo message="Minified ui/ built." />
|
||||
</target>
|
||||
|
||||
|
||||
<target description="Copy needed folders" name="copy">
|
||||
<echo message="Copying files" />
|
||||
<mkdir dir="${dist.dir}" />
|
||||
|
Loading…
Reference in New Issue
Block a user