Sha256: d377a2848a94e443b97481fb53b48c63b316088234d8cd6de2f826c25699d2ff

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require 'f_components/version'
require 'f_components/engine'
require 'f_components/railtie' if defined?(Rails::Railtie)

module FComponents
  class << self
    def webpacker
      @webpacker ||= ::Webpacker::Instance.new(
        root_path: FComponents::Engine.root,
        config_path: FComponents::Engine.root.join('config', 'webpacker.yml')
      )
    end
  end
end

FC = FComponents

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
f_components-0.5.0 lib/f_components.rb
f_components-0.3.0 lib/f_components.rb
f_components-0.2.1 lib/f_components.rb