3 ms·
You can pick and choose the parts of Bootstrap you want to use, but you'll need to compile the SCSS code (very easy). Assuming NPM install, look at node_module
by gbuk2013 9y ago
You can pick and choose the parts of Bootstrap you want to use, but you'll need to compile the SCSS code (very easy).
Assuming NPM install, look at node_modules/bootstrap/scss/bootstrap.scss for a list of files that are included and pick the ones you need and include them manually in your project's SCSS file.
Here's a bit from my Makefile (because I love me some Make):
SASS = ./node_modules/.bin/node-sass
%.min.css: %.scss
$(SASS) \
--output-style compressed \
--source-map true \
--source-map-contents true \
$< $@
- tannhaeuser 9y agoBit late, but it's probably easier to use just sassc (the standard SCSS compiler from the libsass project) rather than node-sass if you don't need node otherwise (for webpack or whatever) in your build pipeline. Node-sass as a native linked requires gyp, hence python, node, and a couple npm packages which add to your footprint considerably.