How to do it…

  1. In our app/_layout.ejs, reference the CSS file from the GitCDN with the following line of code:
<link href="https://gitcdn.xyz/repo/rodrigo-martins/bootstrap-select/master/dist/css/bootstrap-select.css" rel="stylesheet">
  1. Similar to step 1, reference the plugin's js file via GitCDN, in app/partials/_js.ejs:
<script src="https://gitcdn.xyz/repo/rodrigo-martins/bootstrap-select/master/dist/js/bootstrap-select.js"></script>
  1. In main.scss, use the @import statement on recipe06-04.scss and comment out the other recipe-specific styles:
@import "recipe06-04.scss";
  1. Copy the following code and paste it into app/recipe06-04.ejs:
<div class="container"> <div class="mt-5"> <h1><%- title %></h1> <p><a href="https://v4-alpha.getbootstrap.com/components/alerts/" ...

Get Bootstrap 4 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.