Exception: RailsVite::MissingManifestError

Inherits:
Error
  • Object
show all
Defined in:
lib/rails_vite/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingManifestError

Returns a new instance of MissingManifestError.



5
6
7
8
9
10
11
12
# File 'lib/rails_vite/errors.rb', line 5

def initialize(path)
  message = if Rails.env.local?
    "Vite manifest not found at #{path}. Start the Vite dev server with `bin/dev` or precompile assets with `rake vite:build`."
  else
    "Vite manifest not found at #{path}. Run `rake vite:build` to compile assets."
  end
  super(message)
end