rharriso / bower-rails

Bundler-like DSL + rake tasks for Bower on Rails
MIT License
1.46k stars 128 forks source link

Initializer called after rake task started #214

Open louman opened 6 years ago

louman commented 6 years ago

Hey guys,

I'm using 0.11 here with rails 4.2.9 and I have the following configuration:

BowerRails.configure do |bower_rails|
  bower_rails.install_before_precompile = true
  bower_rails.use_gem_deps_for_bowerfile = true
end

The thing is, when I run rake bower:install the dsl code is run before the actual configuration initializer, causing the gem to use the default values instead of the ones within the initializer.

Am I missing something?

ps: I'm trying to install components from a gem