-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
50 lines (36 loc) · 1.44 KB
/
Copy pathREADME
File metadata and controls
50 lines (36 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ComboLoader
WSGI based app that takes a request and concatenates the given files into a single file, and returns it as a single request.
WHAT CAN IT DO?
---------------
* Replace url() tags with:
- data uris
WHAT I WANT IT TO DO
--------------------
* Ability to use a dependency graph for a file
* automatically replace url() with either:
- provided base url for a CDN, etc
For any other requests please submit a bug in github. https://github.com/chrisgeo/comboloader/issues
##### Example config
ComboLoader
WSGI App that is used in combination with another service/server that will allow the combining of any javascript or CSS files into a single, minimized (if not already), file and cache it.
Example INI:
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 80
[composite:main]
use = egg:Paste#urlmap
/ = YOURAPP
/combo = loader
[app:loader]
use = egg:comboloader
base_js_dir = %(here)s/../howler/python/howler/howler/public/js
base_css_dir = %(here)s/css/
use_config = False
[app:YOURAPP]
use = egg:YOURAPP
full_stack = true
COMMON ISSUES
--------------
python-magic
This is required for automatically finding the mime-type of a file without depending on extensions, etc. As such, it requires libmagic to be installed. A known issue with python-magic on darwin (OS X) systems is that it depends on MacPorts. This will hopefully be fixed soon.