Alter rake debug to compile bootstrap-responsive
This commit is contained in:
Родитель
a2c99397c4
Коммит
bc90e37c6c
|
@ -1,3 +1,4 @@
|
|||
*.gem
|
||||
.sass-cache
|
||||
debug.css
|
||||
bootstrap.css
|
||||
bootstrap-responsive.css
|
6
Rakefile
6
Rakefile
|
@ -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
|
Загрузка…
Ссылка в новой задаче