Install
npm install sass --save-dev
npm install bootstrap
package.json
{
"devDependencies": {
"nuxt": "3.0.0-rc.13",
"sass": "^1.56.1"
},
"dependencies": {
"bootstrap": "^5.2.2"
}
}
nuxt.config.json
export default defineNuxtConfig({
css: ["~/assets/scss/main.scss"]
})
assets/scss/main.scss
@import "~~/node_modules/bootstrap/scss/bootstrap.scss";
Error
Deprecation Warning: $weight: Passing a number without unit % (100) is deprecated.
To preserve current behavior: $weight * 1%
More info: https://sass-lang.com/d/function-units
╷
201 │ @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
Waiting
https://github.com/twbs/bootstrap/pull/37425