Sha256: f6eb197d638e5b4d715210fe53802f26bbf532373b0cc64daef672d6c021d034
Contents?: true
Size: 942 Bytes
Versions: 12
Compression:
Stored size: 942 Bytes
Contents
# frozen_string_literal: true require "decidim/webpacker/thread_safe_compiler" module Decidim module Webpacker autoload :Configuration, "decidim/webpacker/configuration" autoload :Runner, "decidim/webpacker/runner" def self.configuration @configuration ||= Configuration.new end def self.register_path(path, prepend: false) if prepend configuration.additional_paths.unshift(path) else configuration.additional_paths.push(path) end end def self.register_entrypoints(entrypoints) configuration.entrypoints.merge!(entrypoints.stringify_keys) end def self.register_stylesheet_import(import, type: :imports, group: :app) type = type.to_s key = group.to_s configuration.stylesheet_imports[type] ||= {} configuration.stylesheet_imports[type][key] ||= [] configuration.stylesheet_imports[type][key].push(import) end end end
Version data entries
12 entries across 12 versions & 1 rubygems