MCPcopy Create free account
hub / github.com/BruceDevices/firmware / minify_css

Function minify_css

patch.py:95–100  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

93
94
95def minify_css(c):
96 minify_req = requests.post(
97 "https://www.toptal.com/developers/cssminifier/api/raw",
98 {"input": c.read().decode('utf-8')},
99 )
100 return c if minify_req is False else minify_req.text.encode('utf-8')
101
102
103def minify_js(js):

Callers 1

prepare_www_filesFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected