Module: Sprockets::BumbleD::DSL

Defined in:
lib/sprockets/bumble_d/dsl.rb

Instance Method Summary collapse

Instance Method Details

#configure_sprockets_bumble_d(&block) ⇒ Object



4
5
6
7
8
9
# File 'lib/sprockets/bumble_d/dsl.rb', line 4

def configure_sprockets_bumble_d(&block)
  initializer 'configure_sprockets_bumble_d',
              before: 'sprockets-bumble_d.configure_transformer' do |app|
    app.config.sprockets_bumble_d.configure(&block)
  end
end

#register_umd_globals(module_name, globals_map) ⇒ Object



11
12
13
14
15
16
# File 'lib/sprockets/bumble_d/dsl.rb', line 11

def register_umd_globals(module_name, globals_map)
  initializer "#{module_name}.register_umd_globals",
              before: 'sprockets-bumble_d.configure_transformer' do |app|
    app.config.sprockets_bumble_d.register_globals(globals_map)
  end
end