Sha256: 57bc977eb1855ddcd99abc584fbf86476bff9b2e979231f7ee53389d8c1d78f1

Contents?: true

Size: 354 Bytes

Versions: 21

Compression:

Stored size: 354 Bytes

Contents

require "shellwords"
require "webpacker/runner"

module Webpacker
  class WebpackRunner < Webpacker::Runner
    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
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
webpacker-3.6.0 lib/webpacker/webpack_runner.rb
webpacker-jets-3.2.101 lib/webpacker/webpack_runner.rb
webpacker-jets-3.2.100 lib/webpacker/webpack_runner.rb
webpacker-3.5.5 lib/webpacker/webpack_runner.rb
webpacker-3.5.3 lib/webpacker/webpack_runner.rb
webpacker-3.5.2 lib/webpacker/webpack_runner.rb
webpacker-3.5.1 lib/webpacker/webpack_runner.rb
webpacker-3.5.0 lib/webpacker/webpack_runner.rb
webpacker-3.4.3 lib/webpacker/webpack_runner.rb
webpacker-4.0.0.pre.pre.2 lib/webpacker/webpack_runner.rb
webpacker-4.0.0.pre.pre.1 lib/webpacker/webpack_runner.rb
webpacker-3.4.1 lib/webpacker/webpack_runner.rb
webpacker-3.4.0 lib/webpacker/webpack_runner.rb
webpacker-3.3.1 lib/webpacker/webpack_runner.rb
webpacker-3.3.0 lib/webpacker/webpack_runner.rb
webpacker-3.2.2 lib/webpacker/webpack_runner.rb
webpacker-3.2.1 lib/webpacker/webpack_runner.rb
webpacker-3.2.0 lib/webpacker/webpack_runner.rb
webpacker-3.1.1 lib/webpacker/webpack_runner.rb
webpacker-3.1.0 lib/webpacker/webpack_runner.rb