【问题标题】:Twitter Bootstrap plugin in Grails has errorsGrails 中的 Twitter Bootstrap 插件有错误
【发布时间】:2014-11-21 23:28:39
【问题描述】:

我正在构建我的第一个 Grails 应用程序,并按照教程学习如何安装 twitter-bootstrap-grails-plugin; (https://github.com/groovydev/twitter-bootstrap-grails-plugin/blob/master/README.md)

我按照那里的说明进行操作,直到安装了 Less 插件。对于开始,我只想使用 Bootstrap UI 的默认分发。

我遇到的问题是,每当加载页面时,我都会在服务器中收到此错误:

2014-02-24 17:56:48,556 [http-bio-8080-exec-7] 错误 resource.ResourceMeta - 找不到资源:/bootstrap.css.map

尽管我尝试过的第一页似乎可以正常工作,但我想知道 .map 文件是什么?有那么重要吗?以及为什么它不起作用,因为它存在于插件分发中..

提前致谢!

【问题讨论】:

标签: css twitter-bootstrap grails less grails-plugin


【解决方案1】:

为 grails 资源管理插件 asset-pipeline 配置了较新版本的 twitter-bootstrap 插件,该插件具有独特的压缩和打包 .css 文件的方式。

如果您仍然喜欢使用 resources 插件管理资源,您可以通过添加来避免此错误

    grails.plugins.twitterbootstrap.defaultBundle = false

到您的 Config.goovy。

【讨论】:

    猜你喜欢
    • 2013-03-20
    • 2014-09-18
    • 1970-01-01
    • 2012-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-14
    • 1970-01-01
    相关资源
    最近更新 更多