Asset pipeline not precompiling sass

后端 未结 1 609
栀梦
栀梦 2021-01-26 21:25

I\'ve updated my app to use the rails 3.1 asset pipeline (I think). I can compile .css files but not css.scss. I am running the sass-rails gem but nothing seems to work.

相关标签:
1条回答
  • 2021-01-26 21:52

    Remember that css.scss files need to be included, not imported like the rest:

    So: Turn you application.css into an application.css.scss, and do like this in it:

    /*
    *= require ./normal/custom.css
    *= require_self
    */
    
    @import "normal/design/control_panel";
    
    0 讨论(0)
提交回复
热议问题