簡體   English   中英

編譯CSS資產Heroku SASS時出錯

[英]Error Compiling CSS Asset Heroku SASS

自從一周前我向Heroku發射了30次以來,這已經困擾了我好幾天了,突然間我收到了這個錯誤

我不使用薩斯! 它不在我的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應用程序時使用過堆棧雪松,所以它不是那樣

謝謝

好吧,過了一會兒,我想通了!

解決此錯誤的最簡單,並非最快但最省力的方法是繼續處理Heroku在編譯時出錯的文件(在我的情況下為base2.css),並逐行復制一行CSS代碼並輸入在此處CSS Validator中 ,我強烈建議這樣做,它會告訴您哪些行有錯誤,哪些行可以。 此外,它將在發現錯誤的地方重新編寫代碼,將完美地組織給出的新代碼,即使看起來像一本書一樣,它也將是正確的代碼。 然后,您可以縮小他們給您的代碼,以將整本書的代碼變成一行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM