vite_ruby icon indicating copy to clipboard operation
vite_ruby copied to clipboard

feat: allow skipping dependency install in assets:precompile

Open josephnle opened this issue 1 year ago • 0 comments

Description 📖

We want to use the assets:precompile extension but we don't want it to install dependencies. This allows setting VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL=true to skip installation while keeping the rest of the task extensions.

Background 📜

This was happening because dependencies are always installed (yarn install / npx ci) as part of the assets:precompile extension.

The Fix 🔨

Add conditional controlled by VITE_RUBY_SKIP_ASSETS_PRECOMPILE_INSTALL to allow for skipping the installation task.

josephnle avatar Apr 02 '24 21:04 josephnle