-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility with dartsass-rails 0.5.1
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
katalyst-koi (4.12.3) | ||
katalyst-koi (4.12.4) | ||
bcrypt | ||
importmap-rails | ||
katalyst-content | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Describe your gem and declare its dependencies: | ||
Gem::Specification.new do |s| | ||
s.name = "katalyst-koi" | ||
s.version = "4.12.3" | ||
s.version = "4.12.4" | ||
s.authors = ["Katalyst Interactive"] | ||
s.email = ["[email protected]"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
module Koi | ||
module Extensions | ||
module Dartsass | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
module_function | ||
|
||
# Removes gem `build` directories from dartsass load path. This ensures | ||
# that css assets will not take precedence over scss assets of the same | ||
# name. | ||
def dartsass_load_paths | ||
[::Dartsass::Runner::CSS_LOAD_PATH] | ||
.concat(Rails.application.config.assets.paths) | ||
.reject { |path| %r{app/assets/builds$}.match?(path.to_s) } | ||
.flat_map { |path| ["--load-path", path.to_s] } | ||
end | ||
end | ||
end | ||
end | ||
end |