No description, website, or topics provided.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
lib
test
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
zfben_rails_assets.gemspec

README.md

SUMMARY

A plugin for replace rails pipline.

Build Status

Getting Started

  1. adding gem to Gemfile

gem 'zfben_rails_assets'

  1. update bundle

bundle install

  1. add .gitignore

public/assets

How to Use

Configuration

  # config/application.rb
  config.assets.enabled = false
  
  config.action_controller.asset_host = 'http://assets.abc.com'
  config.action_controller.asset_path = 'assets'
  config.action_controller.asset_version = '1'

Helper

  assets('blank.css') #=> <link rel="stylesheet" href="/assets/blank.css" />
  assets('blank.js') #=> <script src="/assets/blank.js"></script>