lib/hanami/assets.rb in hanami-assets-0.3.0 vs lib/hanami/assets.rb in hanami-assets-0.4.0

- old
+ new

@@ -51,9 +51,20 @@ Precompiler.new(configuration, duplicates).run Bundler.new(configuration, duplicates).run end + # Precompile assets + # + # @since 0.4.0 + def self.precompile(configurations) + require 'hanami/assets/precompiler' + require 'hanami/assets/bundler' + + Precompiler.new(configuration, configurations).run + Bundler.new(configuration, configurations).run + end + # Preload the framework # # This MUST be used in production mode # # @since 0.1.0