加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap-3 – Dotless未能编译;在Bootstrap 3少源

发布时间:2020-12-18 00:11:38 所属栏目:安全 来源:网络整理
导读:我使用无dot 1.3.1.0编译较少的文件。这在bootstrap 2.x中工作正常,但是在切换到引导3.0.0(从这里下载源代码: http://getbootstrap.com/getting-started/)之后,我突然得到这个错误: Expected ‘)’ but found ‘ ‘ on line 47 in file ‘mixins.less’:
我使用无dot 1.3.1.0编译较少的文件。这在bootstrap 2.x中工作正常,但是在切换到引导3.0.0(从这里下载源代码: http://getbootstrap.com/getting-started/)之后,我突然得到这个错误:

Expected ‘)’ but found ‘ ‘ on line 47 in file ‘mixins.less’: [46]: //
Sizing shortcuts [47]: .size(@width; @height) {
————^ [48]: width: @width;

似乎有一个;作为参数之间的分隔符无效少。 mixins中的原始来源如下所示:

...
// Sizing shortcuts
.size(@width; @height) {
  width: @width;
  height: @height;
}
...

我必须使用更新的编译器吗?还是做bootstrap发布更少的源代码?

更新1:我可以看到,存在对dotless的拉动请求,解决问题;

https://github.com/dotless/dotless/pulls
“fixes for; mixin参数列表中不支持#319#320”

我会去使用css文件,直到这是固定在无点。

解决方法

我的一位使用dotless的同事对Bootstrap 3的问题进行了一些修复。 Apparently Bootstrap3现在将使用最新的代码编译:)

https://github.com/dotless/dotless/commits/master

我预计NuGet的更新包即将推出(基于this tweet)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读