Symfony 2 lesscss paths

I use assetic with a smaller filter and save fewer files in the / Resources / application ... I would like to import other less style sheets from within the package into this file. Everything works fine, but the way I am bullied.

My base.less looks something like this:

@import 'normalize.less'; @import 'mixins.less'; @import 'header.less'; @import 'footer.less'; @import "../../../../../../src/Acme/FooBundle/Resources/public/less/example.less"; 

Is there a way to pass the β€œpaths” parameter to a smaller compiler in symfony2?

EDIT: I found a problem for my problem in assetic repo on github: https://github.com/kriswallsmith/assetic/pull/218

+6
source share
1 answer

Impossible to save the path in a variable, as they say in less documentation?

 @base-url: "http://assets.fnord.com"; background-image: url("@{base-url}/images/bg.png"); 

This is not exactly what you want, but this way you define it only once.

0
source

Source: https://habr.com/ru/post/920939/


All Articles