Asset Pipeline for Rails with your favourite js bundler.
JRuby is not currently supported.
# Create new app or remove Sprockets from existing
rails new project --skip-sprockets
# config/application.rb
config.assets_pipeline.manifest_file = 'config/manifest.json' # default: config/manifest.json
config.assets_pipeline.prefix = '/assets' # default: /assets
config.assets_pipeline.after_manifest_initialization = -> { puts 'called after mainifest initialization' }
Your js bundler should generate manifest file in JSON format:
# config/manifest.json
{
"application.js": "application-ea0d453146be2145f180.js",
...
}