Coder Social home page Coder Social logo

Comments (7)

I3undy avatar I3undy commented on May 24, 2024

@Piedone commented on Sep 16, 2013:

It seems settings the directory is not trivial: dotless/dotless#204 I'll take a look but if you have a solution already don't keep it to yourself :-) (the DotLess code in Combinator is very simple, see LessPreprocessor).

from combinator.

I3undy avatar I3undy commented on May 24, 2024

Dunross commented on Sep 16, 2013 :

Yep, it appears to be nontrivial.. :-/ I haven't made a fix unfortunately - I precompile the LESS files in other tools instead. It would be nice to have it working, but I'm too busy working on other modules now.. :-(

from combinator.

I3undy avatar I3undy commented on May 24, 2024

@Piedone commented on Sep 16, 2013:

Could you describe what exactly the code you're trying is and how it fails? Because I tried just now and it work as expected:

@import "Folder/Test";

This imports the less file under Folder/Test.less.

The only gotcha is that you have to import files without the .less extension added to the path for some reason. If you're using bootstrap.less directly this means you have to provide an alternative version where the .less extensions are stripped, but that's it.

Another issue is BTW that there's no released version of DotLess with Less 1.4 support yet... This also means no Bootstrap 3 usable. Speaking of Bootstrap you might want to take a look at this: https://github.com/Lombiq/Pretty-Good-Bootstrap-Base-Theme

from combinator.

I3undy avatar I3undy commented on May 24, 2024

Dunross commented on Sep 16, 2013:

aha, lol, I haven't tried to import it without extensions... :-) However, if there isn't support for BS 3.0, I cannot use it anyway.. :-( But thanks for the investigation!

from combinator.

I3undy avatar I3undy commented on May 24, 2024

@Piedone commented on Sep 16, 2013:

I'll update DotLess once it's released.

from combinator.

I3undy avatar I3undy commented on May 24, 2024

MattGC commented on May 29, 2015:

Seems a shame that we are still left waiting for a fix.

For now, could we simply look for @import in the string being parsed and replace with the HostingEnvironment.MapPath(importpath)? That seems to work fine unless I'm missing something.

Matt

from combinator.

I3undy avatar I3undy commented on May 24, 2024

kerray commented on Sep 30, 2015:

I'm attempting to use Bootstrap's .less files contained in PJS.Bootstrap, but importing relative paths still fails, and I can't even do it when I strip the ".less" part of the imports... any news on this front please?

from combinator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.