Skip to content

Commit

Permalink
copy css images in css task only if images folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alextk committed Dec 13, 2011
1 parent 7666511 commit 1f7882c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/js_project_builder_tasks.rb
Expand Up @@ -84,8 +84,10 @@ def define
ok or fail "Error running sass on #{project_builder.sass_dir}. \n #{output}"
end

puts "Copying css images..."
cp_r "#{project_builder.sass_dir}/images", "#{project_builder.dist_dir}/css"
if File.exists?("#{project_builder.sass_dir}/images")
puts "Copying css images..."
cp_r "#{project_builder.sass_dir}/images", "#{project_builder.dist_dir}/css"
end
end

namespace :version do
Expand Down

0 comments on commit 1f7882c

Please sign in to comment.