From 2a4d7d93727f77825d46b0eb8c39ef3998efbaa0 Mon Sep 17 00:00:00 2001 From: Ivan Kokorev Date: Thu, 15 May 2025 19:03:11 +0200 Subject: [PATCH] Added support for Windows --- lib/tasks/cssbundling/build.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tasks/cssbundling/build.rake b/lib/tasks/cssbundling/build.rake index ddce5ab..7ddb125 100644 --- a/lib/tasks/cssbundling/build.rake +++ b/lib/tasks/cssbundling/build.rake @@ -51,7 +51,11 @@ module Cssbundling private def tool_exists?(tool) - system "command -v #{tool} > /dev/null" + if Gem.win_platform? + system "where #{tool} 2>nul>nul" + else + system "command -v #{tool} > /dev/null" + end end def using_tool?(tool)