class Webpacker::Instance
Attributes
config_path[R]
root_path[R]
Public Class Methods
new(root_path: Rails.root, config_path: Rails.root.join("config/webpacker.yml"))
click to toggle source
# File lib/webpacker/instance.rb, line 6 def initialize(root_path: Rails.root, config_path: Rails.root.join("config/webpacker.yml")) @root_path, @config_path = root_path, config_path end
Public Instance Methods
commands()
click to toggle source
# File lib/webpacker/instance.rb, line 34 def commands @commands ||= Webpacker::Commands.new self end
compiler()
click to toggle source
# File lib/webpacker/instance.rb, line 22 def compiler @compiler ||= Webpacker::Compiler.new self end
config()
click to toggle source
# File lib/webpacker/instance.rb, line 14 def config @config ||= Webpacker::Configuration.new( root_path: root_path, config_path: config_path, env: env ) end
dev_server()
click to toggle source
# File lib/webpacker/instance.rb, line 26 def dev_server @dev_server ||= Webpacker::DevServer.new config end
env()
click to toggle source
# File lib/webpacker/instance.rb, line 10 def env @env ||= Webpacker::Env.inquire self end
manifest()
click to toggle source
# File lib/webpacker/instance.rb, line 30 def manifest @manifest ||= Webpacker::Manifest.new self end