Sha256: 18ad9b396bf7660900077b115764d7f5381184892c01c11ffb87833c8cb20e65

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

namespace :webpacker do
  desc "Verifies that bin/webpack & bin/webpack-dev-server are present."
  task :check_binstubs do
    unless File.exist?("bin/webpack") && File.exist?("bin/webpack-dev-server")
      $stderr.puts "Webpack binstubs not found.\n"\
           "Have you run rails webpacker:install ?\n"\
           "Make sure the bin directory or binstubs are not included in .gitignore\n"\
           "Exiting!"
      exit!
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
webpacker-3.0.2 lib/tasks/webpacker/check_binstubs.rake
webpacker-3.0.1 lib/tasks/webpacker/check_binstubs.rake
webpacker-3.0.0 lib/tasks/webpacker/check_binstubs.rake
webpacker-react-on-rails-3.0.0.rc.1 lib/tasks/webpacker/check_binstubs.rake
webpacker-react-on-rails-2.0 lib/tasks/webpacker/check_binstubs.rake