Class: Webpacker::WebpackRunner

Inherits:
Runner
  • Object
show all
Defined in:
lib/webpacker/webpack_runner.rb

Instance Method Summary collapse

Methods inherited from Runner

#initialize, run

Constructor Details

This class inherits a constructor from Webpacker::Runner

Instance Method Details

#runObject


6
7
8
9
10
11
12
13
# File 'lib/webpacker/webpack_runner.rb', line 6

def run
  env = Webpacker::Compiler.env
  cmd = [ "#{@node_modules_bin_path}/webpack", "--config", @webpack_config ] + @argv

  Dir.chdir(@app_path) do
    exec env, *cmd
  end
end