Precompile a subset of all packgaes?

Usage: I use external GPU and Cuda related stuff will fail to precompile if they are detached and will terminate the precompile process. can we have a syntax like:

pkg> precompile ^CuArrays ^CUDAnative



Note that you can use import CuArrays, CUDAnative to precompile the selected packages.