Skip to content

Commit 15d8471

Browse files
authored
Make css:build depend on yarn:install directly (#42)
cssbundling-rails depends on railties already, so yarn:install is always available and this avoids `yarn install` being called multiple times.
1 parent 4ed1276 commit 15d8471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tasks/cssbundling/build.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace :css do
22
desc "Build your CSS bundle"
3-
task :build do
4-
unless system "yarn install && yarn build:css"
3+
task build: [ "yarn:install" ] do
4+
unless system "yarn build:css"
55
raise "cssbundling-rails: Command css:build failed, ensure yarn is installed and `yarn build:css` runs without errors"
66
end
77
end

0 commit comments

Comments
 (0)