combine javascript files at deployment in python

后端 未结 6 2125
一向
一向 2021-01-30 07:41

I\'m trying to reduce the number of scripts included in our website and we use buildout to handle deployments. Has anybody successfully implemented a method of combining and com

6条回答
  •  我在风中等你
    2021-01-30 08:10

    If you're using WSGI middleware you could also use Fanstatic. It's probably some more work to integrate it into your stack than "simply" changing something in Buildout. The things you get with Fanstatic on the other hand are pretty good. It allows you to only send exactly the scripts you need for every page. It also does concatting (bundling) and minification of "resources" (JavaScript and CSS).

提交回复
热议问题