mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #1776 from jamesarosen/clean_images
assets:clean task now cleans up images
This commit is contained in:
@@ -12,7 +12,7 @@ namespace :assets do
|
||||
task :clean => :environment do
|
||||
assets = Rails.application.config.assets
|
||||
public_asset_path = Rails.public_path + assets.prefix
|
||||
file_list = FileList.new("#{public_asset_path}/*.js", "#{public_asset_path}/*.css")
|
||||
file_list = FileList.new("#{public_asset_path}/**/*")
|
||||
file_list.each do |file|
|
||||
rm file
|
||||
rm "#{file}.gz", :force => true
|
||||
|
||||
Reference in New Issue
Block a user