Skip to content

Commit

Permalink
Make sure to set compile fallback to true
Browse files Browse the repository at this point in the history
  • Loading branch information
leppert committed Sep 10, 2012
1 parent 8e58c53 commit e441279
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tasks/requirejs-rails_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ EOM
end

task "assets:precompile" => ["requirejs:precompile:external"]
task "assets:environment" do
# This makes sure asset paths can be calculated for fonts and images in CSS files
Rails.application.config.assets.compile = true
end
if ARGV[0] == "requirejs:precompile:all"
task "assets:environment" => ["requirejs:precompile:disable_js_compressor"]
end

0 comments on commit e441279

Please sign in to comment.