Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache asset pipeline files in development mode #29

Closed
wants to merge 2 commits into from

Commits on Feb 12, 2014

  1. cache asset pipeline files in development mode

    Previously, unless `configuration.assets.enabled`, which is false in
    development by default, rack-offline would fall back by to the Rails 2.x
    public/{javascripts,stylesheets} files. This behavior made the default
    configuration useless unless the developer continuously runs `rake
    assets:precompile` after each asset change.
    
    The new behavior causes it to cache every file that _would be present_ in
    public/assets/ after running a `rake assets:precompile`. The  logic is from:
    
    https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/manifest.rb#L115-L116
    
    Additionally, it now checks the configured assets directory prefix, instead of
    using the hard-coded "assets".
    gabetax committed Feb 12, 2014
    Copy the full SHA
    4e29075 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e557317 View commit details
    Browse the repository at this point in the history