Giter Site home page Giter Site logo

Comments (3)

alexander-akait avatar alexander-akait commented on June 18, 2024 1

Sorry for delay, this is an intresting problem...

We prefer to use built-in less loading logic firstly for compatibility reasons, for example, if you have your project without bundler, just less files and build them using less CLI you can rely on this behaviour (yes, for me it is strange too, but this is how less does), on the other side it is a bug, I want to say - Less should fix it in your code (it is a right solution), but I think they will not fix it, so I will try to find a better logic here

Hm, I can't reproduce, tests are here #530 and everything works fine, also I found we have other tests on such cases too, so maybe something wrong with your configuration (aliases, extra options, yarn/pnpm/npm monorepo options, something else).

I want to close it, but I am happy if you provide more details, for example reproducible test repo and I will try to help and fix it here, right now I don't see problems, so feel free to feedback and again sorry for delay

from less-loader.

treeFuck avatar treeFuck commented on June 18, 2024

You can use the example here to reproduce: less-import-test

from less-loader.

alexander-akait avatar alexander-akait commented on June 18, 2024

@treeFuck there is a bug on the vite side

Run in command line:

$ lessc webpack-test/index.less

Output is:

.test {
  background-color: #f40;
}
* {
  padding: 0;
  margin: 0;
}
.test {
  height: 200px;
  width: 200px;
}

And our output is the same.

Why? Because less has a such behaviour (you can open an issue in less repo about it), yeah, it is strange, but we want to be align with resolving/importing files to the original tool.

Feel free to feedback

from less-loader.

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.