Bootstrap 4 supports LESS?

前端 未结 2 1653
执笔经年
执笔经年 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.

提交回复
热议问题