lib/turbo-sprockets/parallel_preloader.rb
# find all assets that have been added to the precompile list
# code adapted from Sprockets::Manifest and Sprockets::Legacy
find all assets that have been added to the precompile list
code adapted from Sprockets::Manifest and Sprockets::Legacy
find all assets that have been added to the precompile list code adapted from Sprockets :: Manifest and Sprockets :: Legacy
def precompile_list
        paths, filters = config.assets.precompile.partition do |arg|
          Sprockets::Manifest.simple_logical_path?(arg)
        end
        filters = filters.map do |arg|
          Sprockets::Manifest.compile_match_filter(arg)
        end
        paths + assets.logical_paths.each_with_object([]) do |(logical_path, filename), ret|
          if filters.any? { |f| f.call(logical_path, filename) }
            ret << logical_path
          end
        end
      end
def precompile_list paths , filters = config . assets . precompile . partition do | arg | Sprockets :: Manifest . simple_logical_path? ( arg ) end filters = filters . map do | arg | Sprockets :: Manifest . compile_match_filter ( arg ) end paths + assets . logical_paths . each_with_object ( [ ] ) do | ( logical_path , filename ) , ret | if filters . any? { | f | f . call ( logical_path , filename ) } ret << logical_path end end end
find all assets that have been added to the precompile list
code adapted from Sprockets::Manifest and Sprockets::Legacy
find all assets that have been added to the precompile list code adapted from Sprockets :: Manifest and Sprockets :: Legacy