Bootstrap 4 In Meteor JS

Bootstrap 4 in Meteor JS

Sometimes we are stuck for silly configuration issue such as How to configure bootstrap-4 in meteor.js application? It’s very simple techniques like follow the below steps

meteor create new-app
cd new-app
meteor npm install --save bootstrap
meteor add fourseven:scss

then rename the main.css to main.scss in client folder, and add below line into the file

@import "../node_modules/bootstrap/scss/bootstrap.scss";
That’s it.
fourseven:scss
This is a Sass build plugin for Meteor. It compiles Sass files with node-sass and it has options to control the load order of Sass files and use Autoprefixer on the generated CSS.
bootstrap-4

Posted

in

by

Comments

2 responses to “Bootstrap 4 in Meteor JS”

  1. Fei Yan Avatar
    Fei Yan

    How to add the js part though?

  2. Jerimiah Avatar
    Jerimiah

    Don’t forget to add the viewport meta tag to your head, or the site won’t be mobile responsive!



Leave a Reply

Your email address will not be published. Required fields are marked *