module VitePadrino

Constants

VERSION

Public Class Methods

included(base) click to toggle source

Internal: Called when the module is registered in the Padrino app.

# File lib/vite_padrino.rb, line 18
def self.included(base)
  base.send :include, VitePadrino::TagHelpers
end
registered(app) click to toggle source

Internal: Called when the Rack app is available.

# File lib/vite_padrino.rb, line 9
def self.registered(app)
  if RACK_ENV != 'production' && ViteRuby.run_proxy?
    app.use(ViteRuby::DevServerProxy, ssl_verify_none: true)
  end
  ViteRuby.instance.logger = app.logger
  included(app)
end