Composition API in Nuxt JS
May 07, 2022
1 min
We will install boostrap directly to boostrap without Vue UI Library. Its allow you to make uptodate and make more flexible.
npm init nuxt-app <project-name>
npm install bootstrap
Because we use sass for boostrap styling, we need to install sass dependency. Because we use node 12, we need to install with compatible library.
npm install node-sass@4 sass-loader@10 --save-dev
// assets/scss/app.scss @import "~bootstrap/scss/bootstrap";
please create your own folder, because nuxt didnt provide it.
You can inject app.scss that you already create before, to nuxt config.
// nuxt.config.js // line 20 css: [ '~/assets/scss/app.scss', ],
Quick Links
Legal Stuff