Class: Webpacker::WebpackRunner
- Defined in:
- lib/webpacker/webpack_runner.rb
Instance Method Summary collapse
Methods inherited from Runner
Constructor Details
This class inherits a constructor from Webpacker::Runner
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/webpacker/webpack_runner.rb', line 6 def run env = { "NODE_PATH" => @node_modules_path.shellescape } cmd = [ "#{@node_modules_path}/.bin/webpack", "--config", @webpack_config ] + @argv Dir.chdir(@app_path) do exec env, *cmd end end |