Skip to content

Commit

Permalink
Skip CSS build if environment variable SKIP_CSS_BUILD is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuokawai committed Jan 9, 2024
1 parent d227ae6 commit 4f41944
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 4f41944

Please sign in to comment.