OpenWrt build minimal image

can I apply this method in OpenWrt 19.07 not to install all the Luci packages

make image PROFILE=tl-wr941nd-v6 \ PACKAGES=“uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap zram-swap \ -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only -opkg”

I guess if you have a look into the menuconfig you can see the dependency of each package and then when you are making your image you know which you can exclude without crashing others. However if they are dependent on each other you will get an err while building your image.
of course when you put a (-) before a package name you exclude it from your target image

I see it here