-
npm uninstall --save-dev bootstrap-sass
-
npm install --save-dev rtl-bootstrap popper.js
-
Find In 'resources/assets/js/bootstrap.js' and Replace
try {
window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');
} catch (e) {}
try {
window.$ = window.jQuery = require('jquery');
window.Popper = require('popper.js');
require('rtl-bootstrap');
} catch (e) {}
- Find In 'resources/assets/sass/app.scss' and Replace
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import "~rtl-bootstrap/scss/bootstrap";
- Find And Delete line in 'resources/assets/sass/_variables.scss'
$font-size-base: 14px;
-
Run
npm install
-
Run
npm run dev
ornpm run production
ornpm run watch
-
Enjoy and use Bootstrap4 RTL
Auther: Hamid Nasr Website
آقا دستت درد نکنه واقعا به داد من رسید