Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
🔧 Add yarn install before assets precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv committed Jan 23, 2022
1 parent 389d1bf commit 88e83b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/tasks/webpack_compile.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

task before_assets_precompile: :environment do
Rake::Task['webpacker:yarn_install'].invoke
end

Rake::Task['assets:precompile'].enhance ['before_assets_precompile'] do
Rake::Task['webpacker:compile'].invoke
end

0 comments on commit 88e83b0

Please sign in to comment.