SlideShare a Scribd company logo
1 of 1
Download to read offline
Dir.chdir('public/stylesheets') do
css_list = Dir.glob('*.css')
css_list_without_extension = []
css_list.each do |f|
css_list_without_extension << File.basename(file,".css")
end
end
Dir.chdir('public/bigboot/less') do
less_list = Dir.glob('*.less')
less_list_without_extension = []
less_list.each do |f|
less_list_without_extension << File.basename(file,".less")
end
end
puts css_list_without_extension & less_list_without_extension
git rm --cached analytics.css customization.css edit-uploads.css editprofile.css ie.css
leads.css list.css login.css my-uploads.css newsfeed.css pro_preview.css pro-
dashboard.css profile2.css pronav.css saved-files.css solr_search.css tags.css
upload.css widgets.cs

More Related Content

Viewers also liked

Progetto ghedi ti accoglie
Progetto ghedi ti accoglieProgetto ghedi ti accoglie
Progetto ghedi ti accoglieProlocoGhedi
 
Kevin M. Hart - Resume 2015
Kevin M. Hart - Resume 2015Kevin M. Hart - Resume 2015
Kevin M. Hart - Resume 2015Kevin Hart
 
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...Jagdish Pathak
 

Viewers also liked (7)

Progetto ghedi ti accoglie
Progetto ghedi ti accoglieProgetto ghedi ti accoglie
Progetto ghedi ti accoglie
 
Prezi by Tonya Johnson
Prezi by Tonya JohnsonPrezi by Tonya Johnson
Prezi by Tonya Johnson
 
Kevin M. Hart - Resume 2015
Kevin M. Hart - Resume 2015Kevin M. Hart - Resume 2015
Kevin M. Hart - Resume 2015
 
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...
Grade Inflation in Private Indian Schools & Colleges: Trappings of Kafkaesque...
 
Ang p1
Ang p1Ang p1
Ang p1
 
Silmi yr
Silmi yrSilmi yr
Silmi yr
 
Doc1
Doc1Doc1
Doc1
 

More from Apoorvi Kapoor (20)

2slidedeck-150318164339-conversion-gate01
2slidedeck-150318164339-conversion-gate012slidedeck-150318164339-conversion-gate01
2slidedeck-150318164339-conversion-gate01
 
Hiking guide2014
Hiking guide2014Hiking guide2014
Hiking guide2014
 
Readme
ReadmeReadme
Readme
 
Empty
EmptyEmpty
Empty
 
111111
111111111111
111111
 
03 03 what_aboutbigdata
03 03 what_aboutbigdata03 03 what_aboutbigdata
03 03 what_aboutbigdata
 
Hiking guide2014
Hiking guide2014Hiking guide2014
Hiking guide2014
 
111111
111111111111
111111
 
Abcd feihfiewfn
Abcd feihfiewfnAbcd feihfiewfn
Abcd feihfiewfn
 
Slide share culture_code_template
Slide share culture_code_templateSlide share culture_code_template
Slide share culture_code_template
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Webtech1b
Webtech1bWebtech1b
Webtech1b
 
Test
TestTest
Test
 
5x5
5x55x5
5x5
 
Lorem
LoremLorem
Lorem
 
SlideShare Hack Day 2013
SlideShare Hack Day 2013SlideShare Hack Day 2013
SlideShare Hack Day 2013
 
Profile Pictures
Profile PicturesProfile Pictures
Profile Pictures
 
SlideShare HACK Day 2013
SlideShare HACK Day 2013SlideShare HACK Day 2013
SlideShare HACK Day 2013
 
SlideShare HACK Day 2013
SlideShare HACK Day 2013SlideShare HACK Day 2013
SlideShare HACK Day 2013
 

Compare CSS and LESS files to remove unused stylesheets

  • 1. Dir.chdir('public/stylesheets') do css_list = Dir.glob('*.css') css_list_without_extension = [] css_list.each do |f| css_list_without_extension << File.basename(file,".css") end end Dir.chdir('public/bigboot/less') do less_list = Dir.glob('*.less') less_list_without_extension = [] less_list.each do |f| less_list_without_extension << File.basename(file,".less") end end puts css_list_without_extension & less_list_without_extension git rm --cached analytics.css customization.css edit-uploads.css editprofile.css ie.css leads.css list.css login.css my-uploads.css newsfeed.css pro_preview.css pro- dashboard.css profile2.css pronav.css saved-files.css solr_search.css tags.css upload.css widgets.cs