mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Setup Less paths for imports
This commit is contained in:
parent
80e36b7c53
commit
955c66a54f
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ module Middleman
|
|||
template_extensions :less => :css
|
||||
end
|
||||
|
||||
app.after_configuration do
|
||||
::Less.paths << File.expand_path(css_dir, source_dir)
|
||||
end
|
||||
|
||||
# Tell Tilt to use it as well (for inline sass blocks)
|
||||
::Tilt.register 'less', LocalLoadingLessTemplate
|
||||
::Tilt.prefer(LocalLoadingLessTemplate)
|
||||
|
|
Loading…
Reference in a new issue