Skip to content

Commit

Permalink
Merge pull request #51 from natsuokawai/nk-skip-css-build-enhance
Browse files Browse the repository at this point in the history
Skip dartsass:build if environment variable `SKIP_CSS_BUILD` is set.
  • Loading branch information
dhh authored Jul 30, 2024
2 parents 132494b + 4f41944 commit 569af9c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/tasks/build.rake
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ namespace :dartsass do
end
end

Rake::Task["assets:precompile"].enhance(["dartsass:build"])
unless ENV["SKIP_CSS_BUILD"]
Rake::Task["assets:precompile"].enhance(["dartsass:build"])

if Rake::Task.task_defined?("test:prepare")
Rake::Task["test:prepare"].enhance(["dartsass:build"])
elsif Rake::Task.task_defined?("db:test:prepare")
Rake::Task["db:test:prepare"].enhance(["dartsass:build"])
if Rake::Task.task_defined?("test:prepare")
Rake::Task["test:prepare"].enhance(["dartsass:build"])
elsif Rake::Task.task_defined?("db:test:prepare")
Rake::Task["db:test:prepare"].enhance(["dartsass:build"])
end
end

0 comments on commit 569af9c

Please sign in to comment.