Sha256: 93f8b56f8fc8843e0c481eb5cf5ef8ea11782bec3434b3b4f715726e9d8af6ee

Contents?: true

Size: 470 Bytes

Versions: 30

Compression:

Stored size: 470 Bytes

Contents

require "webpacker/configuration"

namespace :webpacker do
  desc "Verifies if the Webpacker config is present"
  task :verify_config do
    unless Webpacker.config.config_path.exist?
      path = Webpacker.config.config_path.relative_path_from(Pathname.new(pwd)).to_s
      $stderr.puts "Configuration #{path} file not found. \n"\
           "Make sure webpacker:install is run successfully before " \
           "running dependent tasks"
      exit!
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
shakapacker-6.6.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.6 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.5 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.4 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.3 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.2 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.5.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.4.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.4.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.3.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.3.0.pre.rc.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.2.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.2.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.1.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.1.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.1.0.beta.0 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.2 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.1 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.0 lib/tasks/webpacker/verify_config.rake