For Laravel 10
Install bootstrap icons with:
sail npm i bootstrap-icons
Then update you're vite-config and add the resolve part:
plugins: [
...
],
resolve: {
alias: {
'~bootstrap-icons': path.resolve(__dirname,'node_modules/bootstrap-icons'),
}
}
Now we can add the bootstrap icons in our app.scss file:
@import '~bootstrap-icons/font/bootstrap-icons.css';
At last we want to build:
sail npm run build
Now you can use bootstrap icons in you're html by:
<i class="bi bi-person-fill"></i>
If you are not using sail u can run it without the "sail" part and should use npm run dev
to rebuild and use the application.