User Tools

Site Tools


buster:bootstrap

This is an old revision of the document!


Use Webpacker for Bootstrap/JS, and keep Sprokets for CSS and images (it is simpler).

Don't fuck about with where CSS etc goes.

Install:

yarn add boostrap jquery @popperjs/core

Add to 'javascript/packs/application.js':

// Bootstrap 5
import 'bootstrap'
import "bootstrap/dist/css/bootstrap"

And test in a view:

.alert-success Bootstrap!
buster/bootstrap.1622825270.txt.gz · Last modified: 2021/06/04 16:47 by slack