A package to minimize your scripts and stylesheets
Project description
minipush by Rémi "Mr e-RL" LANGDORPH (c)2019 Rémi LANGDORPH - mrerl@warlegend.net
This lib supports the followings filetypes: css, js Sample config: { "origin": {"folders":["css/", "js/core/", "js/plugins/", "js/"]}, "destination": {"folder": "../templates/", "exts": ["htm", "html"], "type": "embed", "basefolderlink": "/static/"}, "anchors": {"js": {"start": "", "end": ""}, "css": {"start": "", "end": ""}, "conf": {"start": ""} }, "format":{"embed":{"js": "<script>{content}</script>", "css": "<style>{content}</style>"}, "link":{"js": "<script src='{path}'/>", "css": ""} }, "cache": {"folder": "../static/", "enabled": true} }
Example script: from minipush import Minipush Minipush(file="config.json").run()
Don't hesitate to use the 'python -m minipush' (-h to see help)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.