Sha256: 18014d9ba81b274f56a1150f9b22f2ece09651184fb8720cc24eadff68f05d06

Contents?: true

Size: 921 Bytes

Versions: 20

Compression:

Stored size: 921 Bytes

Contents

require "active_support/core_ext/module/attribute_accessors"
require "active_support/core_ext/string/inquiry"
require "active_support/logger"
require "active_support/tagged_logging"

module Webpacker
  extend self

  def instance=(instance)
    @instance = instance
  end

  def instance
    @instance ||= Webpacker::Instance.new
  end

  def with_node_env(env)
    original = ENV["NODE_ENV"]
    ENV["NODE_ENV"] = env
    yield
  ensure
    ENV["NODE_ENV"] = original
  end

  delegate :logger, :logger=, :env, to: :instance
  delegate :config, :compiler, :manifest, :commands, :dev_server, to: :instance
  delegate :bootstrap, :clobber, :compile, to: :commands
end

require "webpacker/instance"
require "webpacker/env"
require "webpacker/configuration"
require "webpacker/manifest"
require "webpacker/compiler"
require "webpacker/commands"
require "webpacker/dev_server"

require "webpacker/railtie" if defined?(Rails)

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/lib/webpacker.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/webpacker-4.0.7/lib/webpacker.rb
webpacker-4.0.7 lib/webpacker.rb
webpacker-4.0.6 lib/webpacker.rb
webpacker-4.0.5 lib/webpacker.rb
webpacker-4.0.4 lib/webpacker.rb
webpacker-4.0.3 lib/webpacker.rb
webpacker-4.0.2 lib/webpacker.rb
webpacker-3.6.0 lib/webpacker.rb
webpacker-4.0.1 lib/webpacker.rb
webpacker-4.0.0 lib/webpacker.rb
webpacker-4.0.0.rc.8 lib/webpacker.rb
webpacker-4.0.0.rc.7 lib/webpacker.rb
webpacker-4.0.0.rc.6 lib/webpacker.rb
webpacker-4.0.0.rc.5 lib/webpacker.rb
webpacker-4.0.0.rc.4 lib/webpacker.rb
webpacker-4.0.0.rc.3 lib/webpacker.rb
webpacker-4.0.0.rc.2 lib/webpacker.rb
webpacker-4.0.0.rc.1 lib/webpacker.rb
webpacker-4.0.0.pre.3 lib/webpacker.rb