当我执行rake资产时:在我的rails应用程序上预编译,如果我有配置
,则会失败config.assets.compress = true
导致错误的块是
.banner-row {
overflow: hidden;
margin: 0px; !important
padding: 0px; !important
}
我得到的错误是
rake aborted!
Sass::SyntaxError: Invalid CSS after "margine: 0px; ":expected "}", was !important"
预编译任务通过compress = false
传递答案 0 :(得分:2)
试试这个:
.banner-row {
overflow: hidden;
margin: 0px !important;
padding: 0px !important;
}