Bootstrap 4 supports LESS?

时间秒杀一切 提交于 2019-12-04 23:41:14

You have to remember that Bootstrap 4 is in its Alpha phase. Currently it does not support LESS, as Bootstrap's blog entry on Bootstrap 4 Alpha states:

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join an increasingly large community of Sass developers.

However, version 4's Getting Started page does still give LESS a mention (although I imagine this is a copy/paste oversight):

npm

Bootstrap’s package.json contains some additional metadata under the following keys:

  • less - path to Bootstrap’s main Less source file

  • style - path to Bootstrap’s non-minified CSS that’s been precompiled using the default settings (no customization)

Whether it will support LESS in the future cannot be really determined without some form of official yay or nay, but currently it doesn't look like there are any plans involving it.

The Bootstrap team decided not to include a Less version with the v4.0 launch but there is an unofficial Bootstrap 4 Less port available. (Full disclosure: I’m the author.)

Hopefully they will have an official Less port like they did for Sass in the future.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!