[ckan-dev] Recreate Minified JavaScript
Toby Dacre
toby.okfn at gmail.com
Tue Mar 26 13:45:15 UTC 2013
On 26 March 2013 13:29, Thodoris Papadopoulos <thodoris at thodoris.net> wrote:
> The problem was that we were editing the resources.config which was placed
> inside [extra_public_paths] folder.
> Actually , the idea was to have an exact copy of src/ckan/ckan/public to
> [extra_public_paths] folder , and apply any changes there.
> Does anybody know why it didn't work ?
>
a) make sure you have restarted ckan
b) run with debug = true in your config so that non-minified js is used
if b fixes it and setting the debug to false breaks it then it is
likely a minification issue
paster front-end-build may help if this is the case
> Thanks
> Thodoris
>
>
>
> On Tue, Mar 26, 2013 at 3:02 PM, Thodoris Papadopoulos
> <thodoris at thodoris.net> wrote:
>>
>> Hello ,
>>
>> We have a similar problem.
>> We have modified resources.config file and added some extra javascripts
>> (jquery UI etc...) .
>> The problems is that the changes to resources.config are not reflected to
>> the html output.
>> Any ideas ?
>>
>> Thanks
>> Thodoris
>>
>>
>>
>>
>> On Tue, Feb 12, 2013 at 11:52 AM, Sean Hammond <sean.hammond at okfn.org>
>> wrote:
>>>
>>> > CKAN is using Fanstatic to organize the JavaScript and create minified
>>> > version of those script files. How can I recreate those minified
>>> > files?
>>>
>>> There is a `paster minify` command with ckan that creates the minified
>>> css and js files from the source ones.
>>>
>>> Generally we don't update the minified css and javascript files each
>>> time we change the source files on a development branch, so if you're
>>> going to deploy a development branch in production you do need to run
>>> `paster minify` yourself.
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
More information about the ckan-dev
mailing list