Sha256: 605895ea3a6edd23c81a6a4810fa85089ffcd08c0385a6d37fece5698acae46b
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
# frozen_string_literal: true module FComponents class Engine < ::Rails::Engine isolate_namespace FComponents config.autoload_once_paths << "#{root}/app/helpers" if Rails.version.start_with?('7') config.app_middleware.use( Rack::Static, urls: ['/f-components-packs'], root: FComponents::Engine.root.join('public') ) initializer 'webpacker.proxy' do |app| next if FComponents.webpacker&.config&.dev_server&.blank? app.middleware.insert_before( 0, Webpacker::DevServerProxy, # "Webpacker::DevServerProxy" if Rails version < 5 ssl_verify_none: true, webpacker: FComponents.webpacker ) end config.generators do |g| g.test_framework :rspec end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
f_components-0.5.0 | lib/f_components/engine.rb |
f_components-0.3.0 | lib/f_components/engine.rb |
f_components-0.2.1 | lib/f_components/engine.rb |