Sha256: 150861cfc08be34cf035f414f90a7c1572e9162f9262fec8f1dbaacfd2fe1d2e

Contents?: true

Size: 670 Bytes

Versions: 18

Compression:

Stored size: 670 Bytes

Contents

module Webpacker
  class Runner
    def self.run(argv)
      $stdout.sync = true

      new(argv).run
    end

    def initialize(argv)
      @argv = argv

      @app_path          = File.expand_path(".", Dir.pwd)
      @node_modules_path = File.join(@app_path, "node_modules")
      @webpack_config    = File.join(@app_path, "config/webpack/#{ENV["NODE_ENV"]}.js")

      unless File.exist?(@webpack_config)
        $stderr.puts "webpack config #{@webpack_config} not found, please run 'bundle exec rails webpacker:install' to install Webpacker with default configs or add the missing config file for your custom environment."
        exit!
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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