From 88e83b0af45fcae6eda9e1977b920675a6ec5585 Mon Sep 17 00:00:00 2001 From: Stephann <3025661+stephannv@users.noreply.github.com> Date: Sun, 23 Jan 2022 11:08:14 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20yarn=20install=20before=20?= =?UTF-8?q?assets=20precompile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/webpack_compile.rake | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/tasks/webpack_compile.rake diff --git a/lib/tasks/webpack_compile.rake b/lib/tasks/webpack_compile.rake new file mode 100644 index 0000000..976c4ee --- /dev/null +++ b/lib/tasks/webpack_compile.rake @@ -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