Sha256: 9ba129704da9dacfd6c0db127fbac5a3aae5e13f556d47ed567989eec338ed77

Contents?: true

Size: 716 Bytes

Versions: 2

Compression:

Stored size: 716 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2018 - MIT License
# Encoding: utf-8

module Jekyll
  module Assets
    module Patches
      module SassFunctions
        def asset_path(path, options = {})
          path, args = path.value.split(%r!\s+!, 2)
          path, = URI.split(path)[5..8]
          path = "#{path} #{args}"

          # We strip the query string, and the fragment.
          path = sprockets_context.asset_path(path, options)
          ::Sprockets::Autoload::Sass::Script::String.new \
            path, :string
        end
      end
    end
  end
end

# --
module Sprockets
  class SassProcessor
    module Functions
      prepend Jekyll::Assets::Patches::SassFunctions
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-assets-3.0.7 lib/jekyll/assets/patches/functions.rb
jekyll-assets-3.0.6 lib/jekyll/assets/patches/functions.rb