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.0.0.rc.14 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.0.rc.13 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.0.rc.12 lib/tasks/webpacker/verify_config.rake
shakapacker-6.0.0.rc.6 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.6 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.5 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.4 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.3 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.2 lib/tasks/webpacker/verify_config.rake
webpacker-6.0.0.rc.1 lib/tasks/webpacker/verify_config.rake