Sha256: ec9df73094a22982172a9368ce41df4c519959c20ba06238d9be32c47f842009
Contents?: true
Size: 987 Bytes
Versions: 10
Compression:
Stored size: 987 Bytes
Contents
class Webpacker::Instance cattr_accessor(:logger) { ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT)) } attr_reader :root_path, :config_path def initialize(root_path: Rails.root, config_path: Rails.root.join("config/webpacker.yml")) @root_path, @config_path = root_path, config_path end def env @env ||= Webpacker::Env.inquire self end def config @config ||= Webpacker::Configuration.new( root_path: root_path, config_path: config_path, env: env ) end def strategy @strategy ||= Webpacker::CompilerStrategy.from_config end def compiler @compiler ||= Webpacker::Compiler.new self end def dev_server @dev_server ||= Webpacker::DevServer.new config end def manifest @manifest ||= Webpacker::Manifest.new self end def commands @commands ||= Webpacker::Commands.new self end def inlining_css? dev_server.inline_css? && dev_server.hmr? && dev_server.running? end end
Version data entries
10 entries across 10 versions & 1 rubygems