Closed AitorRodriguez990 closed 6 years ago
Can you test this with the less
command directly? If it outputs the same thing you need to open an issue on their repository, not here since we're just wrapping that library.
Thank you for the answer, @contra.
I don't understand what are you trying to tell me. I cleared my code to find the problem, but it works badly yet.
My code:
return gulp.src(files, { base: "Styles" })
.pipe(less())
.pipe(gulp.dest(bundlesPath))
So, do you think is a less problem? These less files are working correctly with Visual Studio's web-compiler plugin.
@AitorRodriguez990
less
module directly on your CSS to see if the output is the same.gulp-less
and less
directly, the issue is with less
and your issue will need to be opened there.gulp-less
and less
directly, the issue is with gulp-less
and we will look into it.You can use less
directly by downloading and installing their command line tool: http://lesscss.org/
You should also try running npm upgrade
and npm which less
to find the underlying version of less you have installed.
Thank you again, @contra
I did you told me. I think is a gulp-less
problem because the output is different. For example, this less
code:
.footer-apps {
width: ~"calc(100% - 720px)";
}
Output with gulp-less
:
.footer .footer-apps {
width: calc(-620%);
}
Output with less
directly (command line tool):
.footer .footer-apps {
width: calc(100% - 720px);
}
My node
version is 8.9.1 and less
version is 3.8.0.
@AitorRodriguez990 Check this link: http://lesscss.org/usage/#less-options-math and play with different options, eg.:
…
.pipe(less({
math: 'strict',
}))
…
@mahish I tried different options but nothing works. Same result always.
I did a great mistake and finally I have solved my problem.
I was using less module taking my css files, generated with another tool that we want to remove, instead of take less files... So was my fault.
I'm so sorry, I didn't want to waste your time.
Hi there, I'm using gulp-less on a new proyect and I'm having problems using "calc".
My less file has:
And the output on css files is:
Instead of:
Thank you!