Skip to content

Asset Pipeline for Rails with your favourite js bundler

Notifications You must be signed in to change notification settings

RuntimeLLC/assets_pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 10, 2017
a8f62f1 · Feb 10, 2017

History

21 Commits
Feb 10, 2017
Feb 10, 2017
May 12, 2016
May 10, 2016
May 10, 2016
May 10, 2016
Feb 10, 2017
May 10, 2016
Feb 10, 2017

Repository files navigation

assets_pipeline

Gem Version Build Status

Asset Pipeline for Rails with your favourite js bundler.

JRuby is not currently supported.

Install

# 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' }

Configuration for js bundler

Your js bundler should generate manifest file in JSON format:

# config/manifest.json

{
  "application.js": "application-ea0d453146be2145f180.js",
  ...
}