Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/y-yagi/sprockets-manifestjs_env
https://github.com/y-yagi/sprockets-manifestjs_env
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/y-yagi/sprockets-manifestjs_env
- Owner: y-yagi
- License: mit
- Created: 2022-03-04T00:46:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-06T00:57:51.000Z (over 2 years ago)
- Last Synced: 2024-09-18T20:47:13.548Z (about 2 months ago)
- Language: Ruby
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sprockets::ManifestjsEnv
[![Build Status](https://github.com/y-yagi/sprockets-manifestjs_env/actions/workflows/main.yml/badge.svg)](https://github.com/y-yagi/sprockets-manifestjs_env/actions)
Allow to switch `manifest.js` of `Sprockets` per environment.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'sprockets-manifestjs_env'
```And then execute:
$ bundle install
Or install it yourself as:
$ gem install sprockets-manifestjs_env
## Usage
If your application have a `app/assets/config/manifest_#{::Rails.env}.js`, this gem switch to use it instead of `app/assets/config/manifest.js`.
So if want to use customized `manifest.js` for test, please create a `app/assets/config/manifest_test.js`.
For example: https://github.com/y-yagi/sprockets-manifestjs_env/blob/main/test/dummy/app/assets/config/manifest_test.js
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/y-yagi/sprockets-manifestjs_env.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).