Customized Bootstrap CSS.
require 'sprockets'
require 'icing'
environment = Sprockets::Environment.new
Icing::Sprockets.setup(environment)
//= require icing
require 'icing/compiler'
# Compile assets
Icing::Compiler.compile_assets(
:compress => true, # optional, defaults to false
:logfile => '/dev/null', # optional, defaults to STDOUT
:assets_dir => "./public/assets" # optional, defaults to {icing_gem_root}/public/assets
)
# Compile and gzip assets
Icing::Compiler.gzip_assets(
:compress => true, # optional, defaults to true
:logfile => '/dev/null', # optional, defaults to STDOUT
:assets_dir => "./public/assets" # optional, defaults to {icing_gem_root}/public/assets
)
OR
# Rakefile
namespace :icing do
require 'icing/tasks/assets'
end
namespace :assets do
task :precompile => ['icing:assets:precompile'] do
end
end
git clone git://github.com/tent/icing.git
cd custom-bootstrap
bundle
bundle exec puma
- HTML:
lib/views/*.erb
- CSS:
assets/stylesheets/*
- Images:
assets/images/*
Assets are processed though sprockets.