Module: Isomorfeus::Redux::Imports
- Defined in:
- lib/isomorfeus/redux/imports.rb
Class Method Summary collapse
Class Method Details
.add ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/isomorfeus/redux/imports.rb', line 4 def self.add # make sure static app stylesheets are imported first, if provided imports_path = File.join(Isomorfeus.app_root, 'imports') if Dir.exist?(imports_path) %w[sass scss css].each do |ending| styles_file = File.join(imports_path, 'stylesheets.' + ending) Isomorfeus.add_web_js_import(styles_file) if File.exist?(styles_file) end end Isomorfeus.add_common_js_import('redux', 'Redux', '*') end |