Class: RequirejsOptimizer::Step::Prepare

Inherits:
Base
  • Object
show all
Defined in:
lib/requirejs_optimizer/step/prepare.rb

Instance Method Summary collapse

Methods inherited from Base

#to_proc

Instance Method Details

#performObject



7
8
9
10
11
12
13
# File 'lib/requirejs_optimizer/step/prepare.rb', line 7

def perform(*)
  # Copy build directory into place
  FileUtils.cp_r Rails.root.join('public', 'assets').to_s, RequirejsOptimizer.build_dir.to_s

  remove_gzipped_files
  remove_digestified_files
end