Sha256: fff2624a91f93e92c0655ac8068f65b6f00d1a3bd1c55a9e87f8658494efc441
Contents?: true
Size: 722 Bytes
Versions: 5
Compression:
Stored size: 722 Bytes
Contents
require 'autoprefixer-rails' module Ustyle class Engine < ::Rails::Engine add_paths_block = lambda { |app| Ustyle.asset_directories.each do |asset_directory| app.config.assets.paths << File.join(Ustyle.assets_path, asset_directory) end } initializer "ustyle.assets.precompile" do |app| app.config.assets.precompile += %w( icons/**.* ) end initializer "ustyle.update_asset_paths", &add_paths_block initializer "ustyle.update_asset_paths", group: :assets, &add_paths_block end class Railtie < ::Rails::Railtie initializer :setup_autoprefixer, group: :all do |app| AutoprefixerRails.install(app.assets, *Ustyle.autoprefixer_config(app)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ustyle-1.5.8 | lib/ustyle/engine.rb |
ustyle-1.4.1 | lib/ustyle/engine.rb |
ustyle-1.4.0 | lib/ustyle/engine.rb |
ustyle-1.3.12 | lib/ustyle/engine.rb |
ustyle-1.3.6 | lib/ustyle/engine.rb |