M
M
Messi2015-09-01 13:39:32
css
Messi, 2015-09-01 13:39:32

Add less to kohana?

Hello! In the controller I try to add a less file, the script connected, but there is a problem with the file.
\Assets::css('page3', base_UI.'css/style.less');
This construction automatically adds rel="stylesheet", and for less you need rel="stylesheet/less"
How to replace this particular problem in this line?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander N++, 2015-09-01
@FitTech

Try like this

Assets::css('page3',  base_UI.'css/style.less'  ,NULL, ['rel' => 'stylesheet/less']);

V
Vladislav, 2015-09-01
@MrBikus

Do you want to use less on the combat version of the site?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question