Class: RequirejsOptimizer::Step::Manifest

Inherits:
Base
  • Object
show all
Defined in:
lib/requirejs_optimizer/step/manifest.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/manifest.rb', line 7

def perform(*)
  manifest_entries = RequirejsOptimizer.target_files.map do |f|
    file_is_digestified = f =~ /-[0-9a-f]{32}\./
    manifest_entry_for f if file_is_digestified
  end
  write_manifest manifest_entries.compact.join("\n")
end