3 ms·
what's the size of Bootstrap4? is it smaller than 3? is it more modular? If it was half the size, or more modular, I'd be sold even without new features :)
by k__ 10y ago
what's the size of Bootstrap4? is it smaller than 3? is it more modular?
If it was half the size, or more modular, I'd be sold even without new features :)
- onion2k 10y agoDownload the bootstrap source, open /scss/bootstrap.scss, comment out the features you don't want to use, and rebuild it. Completely customisable and much smaller.
- blktiger 10y agoCouldn't you do that before with the less version of bootstrap?
- k__ 10y agoGood point. Does this integrate well with tools like Webpack? For example, if I want to use a container class, can I do something like: require('bootstrap/src/container.sass') and be done with it? I guess I would probably need to require some core sass files somewhere at the top of my application, but besides that, is it possible?
- slig 10y agoYes, it does. I'm currently using. It's a little tricky as you have to use postcss-loader as well (along with sass-loader).
- k__ 10y agoVery cool :D What's the tricky part? I would probably simply get the bootstrap npm package, sass-loader and try to check which sass files of bootstrap I need to require.