编译 bootstrap less 显示 errors/warnings
Compiling bootstrap less shows errors/warnings
我有一个使用 Bootstrap3 CSS 框架的大型项目。我们使用 Netbeans IDE,它支持较少的保存编译。 Netbeans 使用语法
在通过 npm 安装的 Ubuntu 机器上使用 lessc 2.4.0 版。
$ lessc less/compiled.less css/compiled.css
完整输出:
"/usr/local/bin/lessc" "--source-map" "--source-map- rootpath=../themes/bodensee/less" "--source-map-url=compiled.css.map" "/usr/local/vufind2/themes/bodensee/less/compiled.less" "/usr/local/vufind2/css/compiled.css"
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .btn-xs' has no matches
extend ' .btn-sm' has no matches
extend ' .btn-lg' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .img-responsive' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .img-responsive' has no matches
extend ' .clearfix' has no matches
Done.
我不知道它们是什么类型的错误。但我觉得它们很烦人。当我尝试使用另一种语法时
$ lessc less/compiled.less > css/compiled.css
它突然在没有这些消息的情况下工作了。 Netbeans 不提供更改语法的方法。有人知道解决方案吗?
另见:https://github.com/less/less.js/issues/2449
当代码在主作用域中包含 @media
声明时,Less 似乎会抛出错误。据我所知,这个错误(警告)不会影响扩展本身。
您可以安全地 运行 less 使用 --silent
选项来抑制此警告。
我在使用 Django 应用程序时遇到了这个问题,将其添加到我的设置文件中解决了这个问题:
PIPELINE_LESS_ARGUMENTS = '-s'
我有一个使用 Bootstrap3 CSS 框架的大型项目。我们使用 Netbeans IDE,它支持较少的保存编译。 Netbeans 使用语法
在通过 npm 安装的 Ubuntu 机器上使用 lessc 2.4.0 版。
$ lessc less/compiled.less css/compiled.css
完整输出:
"/usr/local/bin/lessc" "--source-map" "--source-map- rootpath=../themes/bodensee/less" "--source-map-url=compiled.css.map" "/usr/local/vufind2/themes/bodensee/less/compiled.less" "/usr/local/vufind2/css/compiled.css"
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .btn-xs' has no matches
extend ' .btn-sm' has no matches
extend ' .btn-lg' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .img-responsive' has no matches
extend ' .clearfix' has no matches
extend ' .clearfix' has no matches
extend ' .img-responsive' has no matches
extend ' .clearfix' has no matches
Done.
我不知道它们是什么类型的错误。但我觉得它们很烦人。当我尝试使用另一种语法时
$ lessc less/compiled.less > css/compiled.css
它突然在没有这些消息的情况下工作了。 Netbeans 不提供更改语法的方法。有人知道解决方案吗?
另见:https://github.com/less/less.js/issues/2449
当代码在主作用域中包含 @media
声明时,Less 似乎会抛出错误。据我所知,这个错误(警告)不会影响扩展本身。
您可以安全地 运行 less 使用 --silent
选项来抑制此警告。
我在使用 Django 应用程序时遇到了这个问题,将其添加到我的设置文件中解决了这个问题:
PIPELINE_LESS_ARGUMENTS = '-s'