Sha256: d944273301ba3a37644965c4a457ecd9a6252e9357f96922168277f4b582a122

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

namespace :webpacker do
  desc "Verifies that webpack & webpack-dev-server are present."
  task :check_binstubs do
    unless Bundler.which(Gem.win_platform? ? "webpack.bat" : "webpack")
      $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

4 entries across 4 versions & 2 rubygems

Version Path
webpacker-jets-3.2.101 lib/tasks/webpacker/check_binstubs.rake
webpacker-jets-3.2.100 lib/tasks/webpacker/check_binstubs.rake
webpacker-3.2.2 lib/tasks/webpacker/check_binstubs.rake
webpacker-3.2.1 lib/tasks/webpacker/check_binstubs.rake