No release in over a year
Allow to switch Sprocket manifest.js per environment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Sprockets::ManifestjsEnv

Build Status

Allow to switch manifest.js of Sprockets per environment.

Installation

Add this line to your application's Gemfile:

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.