Add Bootstrap CSS to Vuepress

May 26, 2019

Add bootstrap

yarn add bootstrap # or npm install bootstrap --save

Edit docs/.vuepress/enhanceApp.js

// import 'bootstrap/scss/bootstrap.scss';import 'bootstrap/dist/css/bootstrap.css';export default ({  Vue, // the version of Vue being used in the VuePress app  options, // the options for the root Vue instance  router, // the router instance for the app  siteData // site metadata}) => {}

NOTE: I haven't try importing Bootstrap Javascript

Usage at *.md

---title: Test---<button class="btn btn-primary">Click Me</button>

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.