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

bump

See https://github.com/JuliaLang/Pkg.jl/issues/888.

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