mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-13 09:03:10 +00:00
Add the ability to compress the CSS files. Now include both the Google Closure Compiler and the YUI Compressor (for CSS).
This commit is contained in:
parent
7432ec413b
commit
6289d02737
3 changed files with 28 additions and 1 deletions
29
Makefile
29
Makefile
|
|
@ -3,6 +3,8 @@ VER = $(shell cat version.txt)
|
|||
|
||||
MAX = jquery.mobile-${VER}.js
|
||||
MIN = jquery.mobile-${VER}.min.js
|
||||
CSS = jquery.mobile-${VER}.css
|
||||
CSSMIN = jquery.mobile-${VER}.min.css
|
||||
|
||||
FILES = js/jquery.ui.widget.js \
|
||||
js/jquery.mobile.widget.js \
|
||||
|
|
@ -29,7 +31,32 @@ FILES = js/jquery.ui.widget.js \
|
|||
js/jquery.mobile.grid.js \
|
||||
js/jquery.mobile.js
|
||||
|
||||
all: mobile min
|
||||
CSSFILES = themes/default/jquery.mobile.theme.css \
|
||||
themes/default/jquery.mobile.core.css \
|
||||
themes/default/jquery.mobile.transitions.css \
|
||||
themes/default/jquery.mobile.grids.css \
|
||||
themes/default/jquery.mobile.headerfooter.css \
|
||||
themes/default/jquery.mobile.navbar.css \
|
||||
themes/default/jquery.mobile.button.css \
|
||||
themes/default/jquery.mobile.collapsible.css \
|
||||
themes/default/jquery.mobile.controlgroup.css \
|
||||
themes/default/jquery.mobile.dialog.css \
|
||||
themes/default/jquery.mobile.forms.checkboxradio.css \
|
||||
themes/default/jquery.mobile.forms.fieldcontain.css \
|
||||
themes/default/jquery.mobile.forms.select.css \
|
||||
themes/default/jquery.mobile.forms.textinput.css \
|
||||
themes/default/jquery.mobile.listview.css \
|
||||
themes/default/jquery.mobile.forms.slider.css
|
||||
|
||||
all: mobile min css cssmin
|
||||
|
||||
css:
|
||||
@@head -8 js/jquery.mobile.js > ${CSS}
|
||||
@@cat ${CSSFILES} >> ${CSS}
|
||||
|
||||
cssmin:
|
||||
@@head -8 js/jquery.mobile.js > ${CSSMIN}
|
||||
@@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}
|
||||
|
||||
mobile:
|
||||
@@head -8 js/jquery.mobile.js > ${MAX}
|
||||
|
|
|
|||
BIN
build/google-compiler-20100917.jar
Normal file
BIN
build/google-compiler-20100917.jar
Normal file
Binary file not shown.
BIN
build/yuicompressor-2.4.2.jar
Normal file
BIN
build/yuicompressor-2.4.2.jar
Normal file
Binary file not shown.
Loading…
Reference in a new issue