Bootstrap 4 supports LESS?

拥有回忆 提交于 2019-12-10 00:58:49

问题


As nowadays bootstrap team announced the version 4 alpha which natively uses SASS as CSS preprocessor. Is this mean it hasn't any LESS support?!


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/32374863/bootstrap-4-supports-less

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