0

HTML shim を使用して IE 固有のスタイルシートを含めようとしています。ただし、heroku にデプロイすると、"ActionView::Template::Error (ie/IE9.css isn't precompiled):" エラーが発生し続けます。ただし、ローカルで動作するようです。

アセットのさまざまな組み合わせと場所を試してみましたが、これまでのところ何も機能していません。

私の現在の設定は以下です。

IE 固有のファイルは次の場所にあります。

app/assets/stylesheets/ie/index.css.scss
app/assets/stylesheets/ie/IE9.css.scss
app/assets/stylesheets/ie/IE8.css.scss
app/assets/stylesheets/ie/IE7.css.scss
app/assets/stylesheets/ie/IE6.css.scss

index.css.scss

/*
*= require_tree .
*/

application.html.haml

/[if gte IE 9]
  = stylesheet_link_tag "ie/IE9", media: "all"

アプリケーション.css.scss

/*
 * 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 bootstrap
 *= require baseline
 *= require base10creations/gallery_required
 *= require ie
 *= require_self

*/

@import 'baseline.css.scss';
@import 'rem.css.scss';
@import 'common.css.scss';
@import 'admin.css.scss';
@import 'layout.css.scss';
@import 'pages.css.scss';
@import 'components.css.scss';
@import 'forms.css.scss';
@import 'override.css.scss';
4

2 に答える 2