Create a bundled & minified JS file for Mapstraction's common case (using OpenLayers); this'll avoid waiting on additional script loads for mxn.core.js and mxn.openlayers.core.js, and removes the need to load usermap.js separately as well.
This commit is contained in:
parent
34569017ce
commit
fb315c6f61
14
plugins/Mapstraction/Makefile
Normal file
14
plugins/Mapstraction/Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
.fake: clean all
|
||||||
|
|
||||||
|
TARGETS=usermap-mxn-openlayers.min.js
|
||||||
|
|
||||||
|
CORE=js/mxn.js js/mxn.core.js
|
||||||
|
USERMAP=usermap.js
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TARGETS)
|
||||||
|
|
||||||
|
usermap-mxn-openlayers.min.js: $(CORE) js/mxn.openlayers.core.js $(USERMAP)
|
||||||
|
cat $+ | yui-compressor -o $@ --type=js
|
1
plugins/Mapstraction/usermap-mxn-openlayers.min.js
vendored
Normal file
1
plugins/Mapstraction/usermap-mxn-openlayers.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user