asset compression #77
Comments
There currently isn't any plugin for Tinkerer (or Sphinx as far as I know, though I might be wrong). That being said, since this is all static, you should be able to easily run a post-build script on your output directory and compress things if needed. Or serve your static website through django with django-pipeline. A plugin that does this automatically sounds like a good idea actually, though I don't know when I'll personally get around to implementing it. I'll leave this on the issue tracker though, maybe someone else wants to do it. Should be a post-build step that updates the css and js files in the output directory. |
Hay @vladris, |
Well, if you're not serving from GitHub or another free host, you might as well set up the compression on the server you are using (you can totally serve a Tinkerer blog with Django for example). That being said, I agree an extension to do the compression after each build wouldn't be a bad idea if anyone wants to build one. |
Just found this: https://webassets.readthedocs.org/en/latest/generic/index.html#quick-start , havn't tested it yet cause my python knowledge is so bad - but shouldn't be that hard to use it with sphinxlike systems. If i understood right, one could simply add all *.js and all *.css files inside _static/ to a bundle and run the compression. |
I created a simple extension documented here: |
Hay there,
i'm looking for sth. like http://django-pipeline.readthedocs.org/en/latest/compressors.html for tinkerer.
Is there any option/plugin for asset compression?
Actually i never worked with sphinx or tinkerer, but i can't believe there is no such extension.
Thanks in advance,
Lukas
The text was updated successfully, but these errors were encountered: