Skip to content

dbelyaeff/capistrano-webpacker-precompile

Repository files navigation

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.

About

This gem is crafted to make webpacker users life easier.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published