diff options
author | Thomas McDonald <tom@conceptcoding.co.uk> | 2012-06-04 14:34:57 +0400 |
---|---|---|
committer | Thomas McDonald <tom@conceptcoding.co.uk> | 2012-06-04 14:34:57 +0400 |
commit | bc90e37c6c0e435aecdebdd47178562a0ab76073 (patch) | |
tree | e38ffba110ee2f6e74c8875fd86303ccf8418059 | |
parent | a2c99397c46bd013f73591045b30df3584ed9b2f (diff) |
Alter rake debug to compile bootstrap-responsive
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Rakefile | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,4 @@ *.gem .sass-cache -debug.css
\ No newline at end of file +bootstrap.css +bootstrap-responsive.css
\ No newline at end of file @@ -11,8 +11,10 @@ task :debug do require './lib/bootstrap-sass/compass_functions' require './lib/bootstrap-sass/rails_functions' path = './vendor/assets/stylesheets' - engine = Sass::Engine.for_file("#{path}/_bootstrap.scss", syntax: :scss, load_paths: [path]) - File.open('./debug.css', 'w') { |f| f.write(engine.render) } + %w(bootstrap bootstrap-responsive).each do |file| + engine = Sass::Engine.for_file("#{path}/_#{file}.scss", syntax: :scss, load_paths: [path]) + File.open("./#{file}.css", 'w') { |f| f.write(engine.render) } + end end task default: :test
\ No newline at end of file |