Commit 642bcb4d authored by Mike Greiling's avatar Mike Greiling

automatically correct CSS urls on assets:precompile

parent 75663d10
namespace :assets do
desc 'GitLab | Assets | Fix Absolute URLs in CSS'
task :precompile do
css_files = Dir['public/assets/*.css']
css_files.each do | file |
puts "Fixing #{file}"
system "sed", "-i", "-e", 's/url(\([\"\']\?\)\/assets\//url(\1.\//g', file
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment