build: introduce official way to opt out of source minification
authorJo-Philipp Wich <jo@mein.io>
Wed, 6 Apr 2022 09:39:06 +0000 (11:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 6 Apr 2022 09:42:15 +0000 (11:42 +0200)
commit3646b0cd1f65dc929dbc0b29daaa7252f6a2507b
tree07f232279767419990edb96e1f95b211dddc9869
parent516991776a49b8a3777af16ef5cbaf5912f9ae26
build: introduce official way to opt out of source minification

Introduce three new default enabled variables `LUCI_MINIFY_JS`,
`LUCI_MINIFY_LUA` and `LUCI_MINIFY_CSS`  that allow LuCI component
Makefiles to opt out of JavaScript, Lua and CSS compression respectively.

To e.g. inhibit CSSTidy postprocessing in a theme, the corresponding
Makefile can set `LUCI_MINIFY_CSS:=0` prior to including `luci.mk`.

Fixes: #5755
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
luci.mk