2013-06-22 153 views
1

這已經困擾我好幾天了,自從一個星期前,我推出的Heroku的大概是30次,突然我得到這個錯誤的錯誤編譯CSS資產的Heroku SASS

我不要使用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的應用程序,所以它不是

謝謝

+0

出於好奇,你的CSS文件是否有效? – cimmanon

回答

0

好了,所以一段時間後,我想通了!

處理這個錯誤的最簡單,不那麼快,但壓力最小的方法是通過繼續Heroku編譯錯誤的文件,在我的情況下是base2.css,然後逐一複製一行css代碼並在這裏輸入CSS Validator,我高度推薦這個,它會告訴你哪些線路有錯誤,哪些線路沒問題。 此外,它會在發現錯誤的地方重新編寫代碼,它將完美組織新代碼,即使它看起來像只要一本書一樣長,它也會是正確的代碼。 然後你可以用Minify他們給你的代碼把書的長碼變成一行。