module Isomorfeus::Redux::Imports
Public Class Methods
add()
click to toggle source
# 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