class Webpacker::Instance

def commands

def commands
  @commands ||= Webpacker::Commands.new self
end

def compiler

def compiler
  @compiler ||= Webpacker::Compiler.new self
end

def config

def config
  @config ||= Webpacker::Configuration.new(
    root_path: root_path,
    config_path: config_path,
    env: env
  )
end

def dev_server

def dev_server
  @dev_server ||= Webpacker::DevServer.new config
end

def env

def env
  @env ||= Webpacker::Env.inquire self
end

def initialize(root_path: Rails.root, config_path: Rails.root.join("config/webpacker.yml"))

def initialize(root_path: Rails.root, config_path: Rails.root.join("config/webpacker.yml"))
  @root_path, @config_path = root_path, config_path
end

def manifest

def manifest
  @manifest ||= Webpacker::Manifest.new self
end