Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweaks so compass-core assets are detected and included in load path #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/middleman-sprockets/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def rubygems_latest_specs
# Add any directories from gems with Rails-like paths to sprockets load path
def append_paths_from_gems
root_paths = rubygems_latest_specs.map(&:full_gem_path) << app.root
base_paths = %w[assets app app/assets vendor vendor/assets lib lib/assets]
base_paths = %w[assets app app/assets vendor vendor/assets lib lib/assets .]
asset_dirs = %w[javascripts js stylesheets css images img fonts]

root_paths.product(base_paths.product(asset_dirs)).each do |root, (base, asset)|
Expand Down