Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
twanlass opened this issue Feb 12, 2014 · 1 comment
Open

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

twanlass opened this issue Feb 12, 2014 · 1 comment

Comments

@twanlass
Copy link

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.

@monecchi
Copy link

@twanlass Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants