You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,6 +53,7 @@ On my base.html template I usually have something like this:
52
53
</head>
53
54
```
54
55
56
+
Check this [github](https://github.com/less/less.js) for the less compiler at client side.
55
57
Then simply put this script on the same directory as manager.py. Edit the script to adjust your paths to settings.py and to every JS and CSS you whant to merge/minify. Like:
56
58
57
59
```python
@@ -67,7 +69,8 @@ merger = {
67
69
'tasks/templates/tasks/codentemplate.js',
68
70
'message/templates/message/moretemplatecode.js',
69
71
),
70
-
#all static and rendered template JS will be merged, minified and saved to:
72
+
#all static and rendered template JS will be merged,
Ok, this can change on your server but that's the overall idea...
135
+
Ok, this least step can change on your server, but that's the overall idea...
126
136
127
137
Also you can use the option *--images* to optimise **all***.PNG* and *.JPG* present on the directory tree starting where you executed this script (usualy your django project root). Like:
128
138
@@ -164,7 +174,7 @@ All four functions used above are only helper to call some online minifer api. S
164
174
Minifier
165
175
--------
166
176
167
-
This script uses some online api provided by [@andychilton] for all minify action:
177
+
This script uses some great online api provided by [@andychilton] for all minify action:
0 commit comments