编译CSS资产Heroku SASS时出错

时间:2013-06-22 19:08:51

标签: css heroku compilation sass

这已经困扰了我好几天了,从一周前我开始大概第30次到Heroku,突然间我得到了这个错误

我不使用Sass !!它不在我的gemfile或其他任何地方!它在localhost中完美运行,我在网上找到的所有答案都不起作用!

这是我的application.css

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require_tree .
 */

有谁知道为什么heroku给我这个恼人的错误

PS:在你想知道的时候,我在创建heroku应用程序时使用了堆栈雪松,所以不是那样

谢谢

1 个答案:

答案 0 :(得分:0)

好的,过了一会儿,我想出来了!

运行此错误的最简单,不那么快但压力最小的方法是进入Heroku编译错误的文件,在我的情况下为base2.css,并逐行复制每行css代码并在这里输入CSS Validator,我强烈推荐这个,它会告诉你哪些行有错误,哪些行是好的。 此外,它会重新编写发现错误的代码,它会完美地组织新代码,即使它看起来像是一本书,它也是正确的代码。 然后,您可以Minify他们为您提供的代码将书籍长代码转换为一行。