application.cssファイルをsassファイルに変更し、@importを使用して必要なすべてのファイルをプルしたいと思います。次に、application.css.sassをページ固有のsassファイルに@importします。これはすべて開発でうまく機能しますが、herokuの本番環境にプッシュすると次のエラーが発生します:
Error compiling CSS asset
Sass::SyntaxError: File to import not found or unreadable: application
application.css.sass:
@import "reset"
@import "typography"
@import "buttons"
@import "junk"
$yellow: #f0f090
$orange: #f89818
$blue1: #184898
$blue2: #4888c8
body
background: ...
...
/* all the rest of the app-wide styling */
uniquePage.css.sass:
@import "application"
/*page specific styling*/
次に、application.cssとは異なるものが必要なページで
!!! 5
%html
%header
= stylesheet_link_tag "uniquePage"