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

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

Comments

Projects
None yet
2 participants

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.

@twanlass Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment