# Gitignore the public/vendor directory in Radicle?

**URL:** https://discourse.roots.io/t/gitignore-the-public-vendor-directory-in-radicle/28000
**Category:** radicle
**Created:** 2024-09-16T22:08:30Z
**Posts:** 3

## Post 1 by @andronocean — 2024-09-16T22:08:30Z

I’m playing around with Radicle for the first time. I noticed that the `blade-heroicons` package publishes all of its SVGs to the `public/vendor/blade-heroicons` directory… and I’m guessing other Laravel packages might put things there, too, when installed.

Should `public/vendor/*` be added to .gitignore, same as `public/dist/*` is? It’s not in the .gitignore that comes with Radicle. I’m not that familiar with Laravel and a bit of googling was inconclusive.

---

## Post 2 by @ben — 2024-09-18T16:21:51Z

> [@andronocean](#):
>
> I’m not that familiar with Laravel and a bit of googling was inconclusive.

[The `.gitignore` from the `laravel/laravel` repo](https://github.com/laravel/laravel/blob/e0421a4ec94be0044217e83b9c839676337139ae/.gitignore) does not account for this. You would need those files in the repo unless you were to run the `vendor:publish` command during your deploy process to place them into that directory.

> [@andronocean](#):
>
> I noticed that the `blade-heroicons` package publishes all of its SVGs to the `public/vendor/blade-heroicons` directory

It does this only if you specifically want to use the raw SVG icons as assets, instead of using the Blade components. I’ve never done this personally, and I just use the self-closing Blade components (`<x-heroicon-o-arrow-path class="..." />`.

---

## Post 3 by @andronocean — 2024-09-18T23:47:39Z

> [@ben](#):
>
> It does this only if you specifically want to use the raw SVG icons as assets, instead of using the Blade components.

Aha! That solves the puzzle — I’d wondered how those two would work together. Thank you.
