使用Grails引导程序插件扩展引导程序不能按预期工作

时间:2014-07-10 14:53:06

标签: grails twitter-bootstrap-3

我正在使用找到here的Grails bootstrap插件。以防万一我主要使用资产管道,但我仍然包含资源管道以实现向后兼容。

然后我创建(根据说明)另一个名为custom-bootstrap.less

的文件
@import "bootstrap.less";

然后是另一个名为events.less

的文件
/*
 *= require custom-bootstrap
 */
@import "bootstrap.less";
body {
  padding-top: 60px;
  background-color:#d3d3d3;
}

此操作失败,没有格式化。我通过改变事件来尝试别的东西。无论如何......

/*
*= require bootstrap
*/
@import "bootstrap.less";
body {
  padding-top: 60px;
  background-color:#d3d3d3;
}

现在我看到引导样式,但是较少的文件无法编译并引发grails错误。

  

没有方法签名:org.mozilla.javascript.Undefined.replaceAll()   适用于参数类型:(java.lang.String,   asset.pipeline.processors.CssProcessor $ _process_closure1)值:   [url([\' \"]?([a-zA-Z0-9 -_。/ \ @#\?\ \& + \%\ =] +)[\&# 39; \"]?),...]

任何帮助都会很棒!

2 个答案:

答案 0 :(得分:0)

解决方案是转换为插件版本3.1.1.3

答案 1 :(得分:0)

当资产管道无法解析导入文件的路径时,我遇到了此错误。 有关详细信息,请参阅http://bertramdev.github.io/asset-pipeline/guide/usage.html#organization