How to disable adding “.self.” in Sprockets 3.0

前端 未结 2 617
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 07:36

Even if config.assets.digest = false is set Sprockets 3.0 keep adding .self. to all static files: application.css becomes applicatio

2条回答
  •  情书的邮戳
    2021-02-02 08:19

    In Sprockets 3, .self.css is added because you have the config.assets.debug = true config set (not the digest config, that's unrelated).

    If you add the following to your development.rb or production.rb file, it will work as you expect:

    config.assets.debug = false
    

提交回复
热议问题