No commit activity in last 3 years
No release in over 3 years
Oftenly local dev machine is much more powerfull than the remote one (VPS, for example). Every deploy system need to recompile all the assets in packs folder (by default). If the project is large, it'll take to much time and remote machine processor load that it would be much more easier to precompile assets on local machine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0

Runtime

 Project Readme

Capistrano::Webpacker::Precompile

This gem add assets precompilation to webpacker gem.

Installation

Add this line to your application's Gemfile development group:

gem 'capistrano-webpacker-precompile', require: false

And then execute:

$ bundle

Usage

To add webpacker precompile task add this line to your Capfile:

require "capistrano/webpacker/precompile"

Then you need do edit your config/deploy.rb file and add next line:

after 'deploy:updated', 'webpacker:precompile'

Done!

Now cap production deploy command will automatically precompile webpacker assets and sync it with remote server.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Capistrano::Webpacker::Precompile project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.