Module: Webpacker

Extended by:
Webpacker
Included in:
Webpacker
Defined in:
lib/webpacker.rb,
lib/webpacker/runner.rb,
lib/webpacker/version.rb,
lib/webpacker/webpack_runner.rb,
lib/webpacker/dev_server_runner.rb

Defined Under Namespace

Modules: Helper Classes: Commands, Compiler, Configuration, DevServer, DevServerProxy, DevServerRunner, Engine, Env, Instance, Manifest, Runner, WebpackRunner

Constant Summary collapse

VERSION =

Change the version in package.json too, please!

"3.5.5".freeze

Instance Method Summary collapse

Instance Method Details

#instanceObject



12
13
14
# File 'lib/webpacker.rb', line 12

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

#instance=(instance) ⇒ Object



8
9
10
# File 'lib/webpacker.rb', line 8

def instance=(instance)
  @instance = instance
end

#with_node_env(env) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/webpacker.rb', line 16

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