Sha256: 67da26f997e9cf683ce8e7d81ac205f4fdb4ee9887e2b8debc6837ca8cb6fe95
Contents?: true
Size: 1 KB
Versions: 78
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require "sassc-rails" require "slim-rails" module Playbook class Engine < ::Rails::Engine isolate_namespace Playbook config.generators do |g| g.test_framework :rspec end config.view_component.render_monkey_patch_enabled = false config.assets.paths ||= [] config.assets.paths << Playbook::Engine.root.join("fonts") config.assets.paths << Playbook::Engine.root.join("app/pb_kits/playbook/pb_*") config.sass.load_paths ||= [] config.sass.load_paths << Playbook::Engine.root.join("app/pb_kits/playbook") initializer "webpacker.proxy" do |app| insert_middleware = begin Playbook.webpacker.config.dev_server.present? rescue nil end next unless insert_middleware app.middleware.insert_before( 0, Webpacker::DevServerProxy, ssl_verify_none: true, webpacker: Playbook.webpacker ) end end end
Version data entries
78 entries across 78 versions & 1 rubygems