lib/intro.rb in intro-0.3.0 vs lib/intro.rb in intro-0.4.0

- old
+ new

@@ -1,9 +1,8 @@ -require 'shepherdjs_rails' +require 'webpacker' require 'carrierwave' require 'kaminari' -require 'jquery-rails' require 'intro/engine' require 'intro/cache' require 'intro/configuration' require 'intro/helpers/view_helper' @@ -18,8 +17,15 @@ config.instance_exec(&block) end def cache Intro::Cache + end + + def webpacker + @webpacker ||= ::Webpacker::Instance.new( + root_path: Intro::Engine.root, + config_path: Intro::Engine.root.join('config', 'webpacker.yml') + ) end end end \ No newline at end of file