lib/generators/blacklight/assets_generator.rb
##
# Remove the empty generated app/assets/images directory. Without doing this,
# the default Sprockets 4 manifest will raise an exception.
Remove the empty generated app/assets/images directory. Without doing this,
the default Sprockets 4 manifest will raise an exception.
Remove the empty generated app / assets / images directory . Without doing this the default Sprockets 4 manifest will raise an exception .
def appease_sprockets4
      return if !defined?(Sprockets::VERSION) || Sprockets::VERSION < '4'
      append_to_file 'app/assets/config/manifest.js', "\n//= link application.js"
      empty_directory 'app/assets/images'
    end
def appease_sprockets4 return if ! defined? ( Sprockets :: VERSION ) || Sprockets :: VERSION < '4' append_to_file 'app/assets/config/manifest.js' , "\n//= link application.js" empty_directory 'app/assets/images' end
Remove the empty generated app/assets/images directory.
Remove the empty generated app / assets / images directory .