OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Custom LESS file not being compiled

This topic contains 3 replies, has 2 voices, and was last updated by  Mike Kudelya 5 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #36346


    Hello guys, I’m having this problem. I’ve created the following assets.yml in my custom bundle:

    I’ve also activated css_debug for this asset group. Using the chrome dev tools, I see that the file is included in the request, but is not compiled. I get a raw LESS file as a <link rel=”stylesheet” src=”css/less/layout.less”>. If I include a raw CSS file, everything works as expected, but the LESS file isn’t working. Should I do something else? After adding this file to the assets.yml, I’ve run the following commands:

      php app/console cache:clear
      php app/console oro:assets:install –symlink –env=dev
      php app/console assetic:dump –env=dev

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #36347

    Mike Kudelya


    Are we talking about orocrm application, not about oro commerce ? As i understood, do you put to layout.less some changes and you expected see it on your site on oro.css, right ?

    I’m using this script to re-build css/js, it is similar to yours:

    I have tested your case on orocrm application (1.10.8) and it works as expected (i see custom css on oro.css file)



    Hello Mike. Actually I’m using oro commerce right now, but I think that it doesn’t matter because these LESS and JS compilations happen in the oro platform package, is that right? I’m using: https://github.com/orocommerce/orocommerce 1.0.0-beta.3 version.
    I’ve also a custom bundle BiotayUIBundle inheriting from the OroUIBundle, which is the bundle that contains the layout.less file.



    Mike Kudelya


    Can you tell me step by step what you want to archive, please ?
    I also include

    my less file

    and it has been compiled to /web/css/oro.css:

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No