class Opal::Sprockets::Processor
def logical_path
In Sprockets 3 logical_path has an odd behavior when the filename is "index"
def logical_path @logical_path ||= context.filename.gsub(%r{^#{Regexp.escape(context.root_path)}/?(.*?)}, '\1') end
def logical_path @logical_path ||= context.filename.gsub(%r{^#{Regexp.escape(context.root_path)}/?(.*?)}, '\1') end