So trying to remove unused bootstrap elements from my site.
Everything i’ve read points to doing it here but there are no bootstrap 4, SASS examples i can find
I got the this scss list from the bower_components/bootstrap/_bootstrap.scss file. But for some reason it doesn’t seem to grab everything so the css wont compile.
bower.json -
{
"name": "sage",
"homepage": "https://roots.io/sage/",
"authors": [
"Ben Word <ben@benword.com>"
],
"license": "MIT",
"private": true,
"dependencies": {
"bootstrap": "git://github.com/twbs/bootstrap.git#v4.0.0-beta",
"popper.js": "^1.12.3",
"font-awesome": "fontawesome#^4.7.0"
},
"overrides": {
"bootstrap": {
"main": [
"./scss/mixins",
"./scss/utilities",
"./scss/functions",
"./scss/variables",
"./scss/print",
"./scss/reboot",
"./scss/type",
"./scss/images",
"./scss/code",
"./scss/grid",
"./scss/tables",
"./scss/forms",
"./scss/buttons",
"./scss/transitions",
"./scss/dropdown",
"./scss/button-group",
"./scss/input-group",
"./scss/custom-forms",
"./scss/nav",
"./scss/navbar",
"./scss/card",
"./scss/breadcrumb",
"./scss/pagination",
"./scss/badge",
"./scss/jumbotron",
"./scss/alert",
"./scss/progress",
"./scss/media",
"./scss/list-group",
"./scss/close",
"./scss/modal",
"./scss/tooltip",
"./scss/popover",
"./scss/carousel",
"./scss/utilities",
"./scss/clearfix",
"./js/dist/transition.js",
"./js/dist/alert.js",
"./js/dist/button.js",
"./js/dist/carousel.js",
"./js/dist/collapse.js",
"./js/dist/dropdown.js",
"./js/dist/modal.js",
"./js/dist/tooltip.js",
"./js/dist/popover.js",
"./js/dist/scrollspy.js",
"./js/dist/tab.js"
]
}
}
}
Errors all point to missing mixins etc.
messageOriginal: no mixin named media-breakpoint-up
Anyone successfully cut out unwanted scss and js files from bootstrap?