How to ignore multiple files with `ag` The Silver Searcher
You could use brace expansion e.g.
ag pattern --ignore={'*assets*','*scripts*'} path_to_search
or, as Glenn suggests here, process substitution:
ag pattern -p <(printf "*%s*\n" assets scripts) path_to_search