Skip to content

Commit

Permalink
SassC does not appear to look in Sass.load_paths, so instead we must …
Browse files Browse the repository at this point in the history
…register bourbon with the asset pipeline.
  • Loading branch information
botandrose-machine authored and tysongach committed Jun 1, 2018
1 parent c2db222 commit 8257c68
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/bourbon.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
require "sass"
require "bourbon/generator"

Sass.load_paths << File.expand_path("../../core", __FILE__)
module Bourbon
if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
config.assets.paths << File.expand_path("../../core", __FILE__)
end
else
Sass.load_paths << File.expand_path("../../core", __FILE__)
end
end

0 comments on commit 8257c68

Please sign in to comment.