Pedro Algarvio, aka, s0undt3ch wrote:
> This is an idea that I'm currently using on a project of mine.
>
> If I've catched your attention, you can read more about it on:
>
> http://blog.ufsoft.org/index.php/2007/12/31/webhelpers-and-javascript-minification/
>
> Best Regards, and a Happy New Year!!!!!
BTW, there's a command in WebHelpers for doing minification. If you add
this to setup.cfg:
[global]
command_packages = tasktracker.distutils_commands
[aliases]
build = compress_resources build
[compress_resources]
resource_dirs = <PACKAGE>/public/javascripts
<PACKAGE>r/public/stylesheets
Then when you run "python setup.py compress_resources" (or just
install/build the package, due to the alias) it will create
compressed.js and compressed.css. It uses the ShrinkSafe minimizer; I
don't know which are better, but ShrinkSafe was easy to setup (it's a
web service).
If you have any interest in submitting a patch to better integrate these
pieces I'm sure that would be appreciated.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---