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:57 +0000 (11:42 +0200)
commit59c838b52a917d6d6bdca2cb47598b065d2ef10f
treed9956d7a2210d1b7d92dd6c81dbe342e43749391
parentbb6ef9fcc6d18a9013aea6be9c4857b6b5809839
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>
(cherry picked from commit 3646b0cd1f65dc929dbc0b29daaa7252f6a2507b)
luci.mk