Sha256: d25e06b7cafcfedff3aab91224314c6fade95e995ecd382f973a0240f7c497c5

Contents?: true

Size: 811 Bytes

Versions: 52

Compression:

Stored size: 811 Bytes

Contents

class Webpacker::Instance
  cattr_accessor(:logger) { ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT)) }

  attr_reader :root_path, :config_path

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

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

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

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

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

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

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

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/webpacker/instance.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/webpacker/instance.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/webpacker/instance.rb
webpacker-5.4.4 lib/webpacker/instance.rb
webpacker-5.4.3 lib/webpacker/instance.rb
webpacker-5.4.2 lib/webpacker/instance.rb
webpacker-5.4.1 lib/webpacker/instance.rb
webpacker-5.4.0 lib/webpacker/instance.rb
webpacker-5.3.0 lib/webpacker/instance.rb
webpacker-5.2.2 lib/webpacker/instance.rb
webpacker-6.0.0.beta.7 lib/webpacker/instance.rb
webpacker-6.0.0.beta.6 lib/webpacker/instance.rb
webpacker-6.0.0.beta.5 lib/webpacker/instance.rb
webpacker-6.0.0.beta.4 lib/webpacker/instance.rb
webpacker-6.0.0.beta.3 lib/webpacker/instance.rb
webpacker-6.0.0.beta.2 lib/webpacker/instance.rb
webpacker-6.0.0.beta.1 lib/webpacker/instance.rb
webpacker-6.0.0.beta lib/webpacker/instance.rb
webpacker-6.0.0.pre.2 lib/webpacker/instance.rb
webpacker-6.0.0.pre.1 lib/webpacker/instance.rb