GithubHelp home page GithubHelp logo

Comments (3)

ccqgithub avatar ccqgithub commented on July 20, 2024

引用的组件样式本来就应该在前额,至于less import重复的问题,这是less的范畴,你两个文件import同一个,本来就会重复。
一般variable.less.应该只放变量和函数,如果非要两个文件import同一个,可看看less的@import (onece) variable.less, 不知道有没有记错

from fis3-parser-vue-component.

blessbygod avatar blessbygod commented on July 20, 2024

less 的 import once 已经合并为 import 了。
两个文件import同一个很正常的。 variable.less 如果在外部引用, .vue 会直接报变量未定义。

所以问题就是如果在组件中处理less,less并没有监测在当前页面在其他less文件,或者其他组件引用过variable.less

from fis3-parser-vue-component.

ccqgithub avatar ccqgithub commented on July 20, 2024

这是less本身的问题,你两个less文件import另一个,一个less文件会知道另一个less文件是否import?
像你这种用法,应该使用@import (reference) variable.less;

from fis3-parser-vue-component.

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.