[ckan-dev] Order of css files bundled with fanstatic is random

Krzysztof Madejski krzysztof.madejski at epf.org.pl
Fri Mar 13 16:50:49 UTC 2015


Hi,

When debug is set on in my dev version my resources are served in following
order:

<link rel="stylesheet" type="text/css"
href="/fanstatic/dane_publiczne/:version:2015-03-13T10:17:20.18/reset.css">
<link rel="stylesheet" type="text/css"
href="/fanstatic/dane_publiczne/:version:2015-03-13T10:17:20.18/main.css">
<link rel="stylesheet" type="text/css"
href="/fanstatic/dane_publiczne/:version:2015-03-13T10:17:20.18/login.css">

aligning with the order there are mentioned in source templates.

When I switch the debug off and fanstatic bundling kicks in it results in:

<link rel="stylesheet" type="text/css"
href="/fanstatic/dane_publiczne/:version:2015-03-13T10:17:20.18/:bundle:reset.css;main.css;login.css">

Which is ok.


On other server (FYI: ckan served by apache mod-wsgi) the same source code
results in different order:

<link rel="stylesheet" type="text/css"
href="/fanstatic/dane_publiczne/:version:2015-03-13T11:48:17.38/:bundle:login.css;main.css;reset.css">

Login.css is first, not the last.


??? So is the order random?


I've solved that using resource.config order option (
http://docs.ckan.org/en/latest/contributing/frontend/resources.html), but
it's worrying me fanstatic bundles resources in random order.


-- 
Krzysztof Madejski
Koordynator Koduj Dla Polski, Fundacja ePaństwo
Code for Poland program manager, ePF Foundation
http://forum.kodujdlapolski.pl
krzysztof.madejski at epf.org.pl
+48 664 082 823
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150313/2aac3c98/attachment-0002.html>


More information about the ckan-dev mailing list