Setup Less paths for imports
This commit is contained in:
parent
80e36b7c53
commit
955c66a54f
|
@ -17,6 +17,10 @@ module Middleman
|
|||
app.before_configuration do
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue