https://github.com/dbelyaeff/capistrano-webpacker-precompile
This gem is crafted to make webpacker users life easier.
https://github.com/dbelyaeff/capistrano-webpacker-precompile
Last synced: about 2 months ago
JSON representation
This gem is crafted to make webpacker users life easier.
- Host: GitHub
- URL: https://github.com/dbelyaeff/capistrano-webpacker-precompile
- Owner: dbelyaeff
- License: mit
- Created: 2018-06-10T10:50:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T10:30:06.000Z (over 6 years ago)
- Last Synced: 2024-03-15T07:22:52.839Z (about 1 year ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Capistrano::Webpacker::Precompile
This gem add assets precompilation to **webpacker** gem.
## Installation
Add this line to your application's Gemfile development group:
```ruby
gem 'capistrano-webpacker-precompile', require: false
```And then execute:
```
$ bundle
```## Usage
To add webpacker precompile task add this line to your **Capfile**:
```ruby
require "capistrano/webpacker/precompile"
```Then you need do edit your `config/deploy.rb` file and add next line:
```ruby
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](https://opensource.org/licenses/MIT).
## 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](https://github.com/[USERNAME]/capistrano-webpacker-precompile/blob/master/CODE_OF_CONDUCT.md).