【发布时间】:2015-12-04 00:21:48
【问题描述】:
我通过 application.css 使用资产管道包含 css 文件,而我的引导 css 文件要求我添加属性 media="screen, projection"
目前我正在添加:
*= require /webjars/bootstrap/3.3.5/css/bootstrap-theme
*= require /webjars/bootstrap/3.3.5/css/bootstrap
*= require /webjars/bootstrap-tagsinput/0.5/bootstrap-tagsinput
到我正在生成的 application.css:
<link rel="stylesheet" href="/assets/webjars/bootstrap/3.3.5/css/bootstrap-theme.css?compile=false">
<link rel="stylesheet" href="/assets/webjars/bootstrap/3.3.5/css/bootstrap.css?compile=false">
<link rel="stylesheet" href="/assets/bootstrap-multi-level-dropdown.css?compile=false">
例如,我如何生成以下 html?
<link rel="stylesheet" href="/assets/webjars/bootstrap/3.3.5/css/bootstrap-theme.css?compile=false" media="screen, projection">
【问题讨论】:
标签: css grails asset-pipeline grails-3.0