Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

LESS Converted - import paths don't seem to work #41

Open
twanlass opened this Issue · 0 comments

1 participant

@twanlass

This may be related to "Failure with Sass @import #6". It looks like the same is happening w/ LESS. @imports are failing unless executing from a base directory.

My current converted (which is working):

    class LessConverter < JekyllAssetPipeline::Converter
      require 'less'

      def self.filetype
        '.less'
      end

      def convert
        Dir.chdir "../_assets/stylesheets" do
          return Less::Parser.new(:paths => ['.', '_assets']).parse(@content).to_css
        end
      end
    end

May be worth adding a LESS sample to the README as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.