Skip to content

Commit bfbb81b

Browse files
committed
Rename to builds
1 parent 15a01f6 commit bfbb81b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ The `dartsass:build` is automatically attached to `assets:precompile`, so before
2323

2424
## Configuring Stylesheets
2525

26-
By default, only `app/assets/stylesheets/application.scss` will be built. If you'd like to change the path of this stylesheet, add additional entry points, or customize the name of the built file, use the `Rails.application.config.dartsass.stylesheets` configuration hash.
26+
By default, only `app/assets/stylesheets/application.scss` will be built. If you'd like to change the path of this stylesheet, add additional entry points, or customize the name of the built file, use the `Rails.application.config.dartsass.builds` configuration hash.
2727

2828

2929
```
3030
# config/initializers/dartsass.rb
31-
Rails.application.config.dartsass.stylesheets = {
31+
Rails.application.config.dartsass.builds = {
3232
'app/index.sass' => 'app.css',
3333
'site.scss' => 'site.css'
3434
}

lib/dartsass/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
module Dartsass
44
class Engine < ::Rails::Engine
55
config.dartsass = ActiveSupport::OrderedOptions.new
6-
config.dartsass.stylesheets = { "application.scss" => "application.css" }
6+
config.dartsass.builds = { "application.scss" => "application.css" }
77
end
88
end

lib/tasks/build.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
EXEC_PATH = "#{Pathname.new(__dir__).to_s}/../../exe/dartsass"
22

33
def dartsass_build_mapping
4-
Rails.application.config.dartsass.stylesheets.map { |input, output|
4+
Rails.application.config.dartsass.builds.map { |input, output|
55
"#{Rails.root.join("app/assets/stylesheets", input)}:#{Rails.root.join("app/assets/builds", output)}"
66
}.join(" ")
77
end

0 commit comments

Comments
 (0)