Sha256: 92dee7f112ac87432717cef6e4dbeb850c5c1263ed4ceff9a086498383654066

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

module Isomorfeus
  module Redux
    module Imports
      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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
isomorfeus-redux-4.1.8 lib/isomorfeus/redux/imports.rb
isomorfeus-redux-4.1.7 lib/isomorfeus/redux/imports.rb
isomorfeus-redux-4.1.6 lib/isomorfeus/redux/imports.rb
isomorfeus-redux-4.1.5 lib/isomorfeus/redux/imports.rb