twitter-bootstrap Bootstrap 4 支持 LESS?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32374863/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 23:07:28  来源:igfitidea点击:

Bootstrap 4 supports LESS?

twitter-bootstrapless

提问by bobsilon

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

正如现在引导团队宣布了第 4 版 alpha,它本机使用 SASS 作为 CSS 预处理器。这是否意味着它没有任何 LESS 支持?!

采纳答案by James Donnelly

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 Alphastates:

您必须记住 Bootstrap 4 处于 Alpha 阶段。目前它不支持 LESS,正如 Bootstrap在 Bootstrap 4 Alpha 上博客文章所述:

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

从 Less 迁移到 Sass。多亏了 Libsass,Bootstrap 现在的编译速度比以往任何时候都快,而且我们加入了越来越大的 Sass 开发人员社区。

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

但是,第 4 版的入门页面仍然没有提及 LESS(尽管我认为这是复制/粘贴的疏忽):

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)

新产品经理

Bootstrap 的 package.json 在以下键下包含一些额外的元数据:

  • less- Bootstrap 的主要 Less 源文件的路径

  • style- 使用默认设置(无自定义)预编译的 Bootstrap 的非压缩 CSS 的路径

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

如果没有某种形式的官方yaynay,无法真正确定将来是否支持 LESS ,但目前看起来没有任何计划涉及它。

回答by seanCodes

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

Bootstrap 团队决定在 v4.0 发布时不包含 Less 版本,但有一个非官方的Bootstrap 4 Less 端口可用。(完全披露:我是作者。)

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

希望他们将来能像 Sass 那样有一个官方的 Less 端口。