You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using vue-cli to build a project, and use less to write styles;
when I try to import a .less file into .vue to use a utils function, it was return a bad result;
below is my utils.less:
I think the url will be just simply merge, like './[email protected]' and './[email protected];
but in fact, I got '../../common/css/[email protected]' and '../../common/css/[email protected]';
it looks like merge the url of import file;
I don't know how to deal with the problem, can somebody help me?
Path resolution occurs at the place where the url() function is used. If that is inside a mixin declared in another imported .less sheet, then the path will be made relative to that imported sheet and not relative to where said mixin is called.
This relates also to earlier discussion in #2629 as the data-uri() function has the same behavior.
No final solution to this problem was designed yet, though I did take a shot at it back then.
I was using vue-cli to build a project, and use less to write styles;
when I try to import a .less file into .vue to use a utils function, it was return a bad result;
below is my utils.less:
and this is styles in my header.vue, it was import utils.less:
webpack:
I think the url will be just simply merge, like './[email protected]' and './[email protected];
but in fact, I got '../../common/css/[email protected]' and '../../common/css/[email protected]';
it looks like merge the url of import file;
I don't know how to deal with the problem, can somebody help me?
below is the error message:
The text was updated successfully, but these errors were encountered: