Rails 3.1 Sprockets require directives - is there a way to exclude particular files?

后端 未结 5 952
独厮守ぢ
独厮守ぢ 2020-12-28 12:24

If I\'m using //=require_tree . in application.css, is there a way to exclude particular files other than resorting to //=require_directory and tre

5条回答
  •  旧时难觅i
    2020-12-28 12:58

    NB: This answer is now out of date, with an update to Sprockets having this feature. See the answer below.

    ===

    This is not possible with current Sprockets directives, but it seems like a handy feature.

    The other way to to manually list each file you want.

    Perhaps you could file this as a feature request over on the Sprockets repo? :-)

提交回复
热议问题