Git Product home page Git Product logo

Comments (7)

iamfrontender avatar iamfrontender commented on June 24, 2024

I just met exactly the same behaviour. Also noticed that less won't add rules from globbed files if they're empty.

from less-plugin-glob.

sonicparke avatar sonicparke commented on June 24, 2024

I'm getting the same here as well.

from less-plugin-glob.

just-boris avatar just-boris commented on June 24, 2024

Well, so many people encountered that issue. But I have the same setup and it is work well

from less-plugin-glob.

just-boris avatar just-boris commented on June 24, 2024

Fine, got it.
Why are you imports declared from the app root? You should import relatively to this file.

from less-plugin-glob.

andyblount avatar andyblount commented on June 24, 2024

Had the same problem but as Boris says if you import relative to the file it works.

Is is possible to add functionality to make it work from the app root as well?

from less-plugin-glob.

just-boris avatar just-boris commented on June 24, 2024

Found that less implicitly adds extra path to search files here

if (!isAbsoluteFilename && paths.indexOf('.') === -1) { 
  paths.push('.'); 
}

I can't reuse this piece of code, only copy that to my plugin. I'll try to do it

from less-plugin-glob.

just-boris avatar just-boris commented on June 24, 2024

Seems to be fixed in my little example.
Please try to test current master in your projects, and if it is fine, I will make a release

from less-plugin-glob.

Related Issues (16)

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.