rharriso / bower-rails

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

How to understand main_file in Bower? #172

Closed flyfy1 closed 8 years ago

flyfy1 commented 8 years ago

Hi I'm quite new to Bower, and Bower-Rails.

I see there's 'main_files' in Bowerfile DSL specs... what is it for? I also see 'main' in bower.json, how is it different from MailFile?

More over, I'm trying to get a way to automatically include the css / js files into my application.css, and application.js, is there a way to achieve that?

SergeyKishenin commented 8 years ago

http://stackoverflow.com/a/21266210/532252

flyfy1 commented 8 years ago

@SergeyKishenin Thanks for the fast response.. I still don't quite get it: what does it mean, if I include the files into the main_files option?

SergeyKishenin commented 8 years ago

rake bower:clean won't remove files which you specify with main_files option