K
K
KennyForever2016-02-08 14:35:03
css
KennyForever, 2016-02-08 14:35:03

How to add css to project on less?

There is a project written in less.
There is one .css file.
Required: include the pure css file in the compilation of the single output file.
So far I've only googled it
@import "jquery.mCustomScrollbar.css"
, but it doesn't read the .css file into the compilation. Only the import of this file gets into the compilation, and it is included separately.
I know for sure that this can be done with sass, but about less...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Shvedov, 2016-02-08
@mmmaaak

For example, you can rename css to less and connect it as less partial, which it includes in the final file. And, as far as I understand, css code is valid code on less

D
Denis Ineshin, 2016-02-08
@IonDen

@import (less) "style.css";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question