Bootstrap 4 supports LESS?

前端 未结 2 1651
执笔经年
执笔经年 2021-02-12 19:31

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?!

相关标签:
2条回答
  • 2021-02-12 20:06

    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.

    0 讨论(0)
  • 2021-02-12 20:11

    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.

    0 讨论(0)
提交回复
热议问题