Sha256: 60d64ad8658484f588ec42e66575097243c30df95104397fe9c786032b6136df
Contents?: true
Size: 918 Bytes
Versions: 17
Compression:
Stored size: 918 Bytes
Contents
# frozen_string_literal: true require "decidim/assets" 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
17 entries across 17 versions & 1 rubygems