class Webpacker::Configuration
def config_path
def config_path Rails.root.join(paths.fetch(:config, "config/webpack")) end
def entry_path
def entry_path Rails.root.join(source_path, paths.fetch(:entry, "packs")) end
def file_path
def file_path Rails.root.join("config", "webpack", "paths.yml") end
def load
def load return super unless File.exist?(@path) HashWithIndifferentAccess.new(YAML.load(File.read(@path))[Webpacker::Env.current]) end
def manifest_path
def manifest_path Rails.root.join(packs_path, paths.fetch(:manifest, "manifest.json")) end
def output_path
def output_path Rails.root.join(paths.fetch(:output, "public")) end
def packs_path
def packs_path Rails.root.join(output_path, paths.fetch(:entry, "packs")) end
def paths
def paths load if Webpacker::Env.development? raise Webpacker::FileLoader::FileLoaderError.new("Webpacker::Configuration.load must be called first") unless instance instance.data end
def source
def source paths.fetch(:source, "app/javascript") end
def source_path
def source_path Rails.root.join(source) end