1๐
โ
I followed some older StackOverflow answers and managed (I think) to create working demo with newest Nuxt 3 and Bootstrap 5 like this:
https://stackblitz.com/edit/github-bebg1r-j6lqxm
The key things:
- In
package.json
add and install dependencies forbootstrap
,sass
andsass-loader
- Create
.scss
file in/assets
folder containg@import 'bootstrap/scss/bootstrap';
- Load this file in
nuxt.config.ts
viacss: ['~/assets/main.scss']
- Plugin to load JS bundle in
/plugins/bootstrap.client.ts
๐คEllrohir
Source:stackexchange.com