陈旧资产 - Hanami不会更新已编辑的文件

时间:2016-06-16 23:49:10

标签: ruby sass css-preprocessor hanami

我使用Hanami和sass作为预处理器,但是当我在某个.scss文件中进行更改并刷新页面时,更改不会加载, public / assets / 文件 .css 未更新。为了更新,我必须删除文件...

有谁知道为什么会这样?

的Gemfile

source 'https://rubygems.org'

gem 'bundler'
gem 'rake'
gem 'hanami',       '0.7.3'
gem 'hanami-model', '~> 0.5'

gem "sass"
gem 'pg'

group :test do
  gem 'minitest'
  gem 'capybara'
end

group :production do
  # gem 'puma'
end

application.rb中

...

assets do
        ...
        # Stylesheet compressor
        #
        # Supported engines:
        #
        #   * :builtin
        #   * :yui
        #   * :sass
        #
        # See: http://hanamirb.org/guides/assets/compressors
        #
        # In order to skip stylesheet compression comment the following line
        stylesheet_compressor :builtin

        # Specify sources for assets
        #
        sources << [
          'assets'
        ]
      end

1 个答案:

答案 0 :(得分:0)

你试过升级到最新的Hanami版本吗?截至今天,0.9.2