Jump to content

RockPageBuilder – rename main.css


nurkka
 Share

Recommended Posts

When using LESS files in blocks, RockPageBuilder compiles them automatically (I believe by using RockFrontend) to one main.css file and includes it in the <head>.

Is there any setting or config option to change the name main.css to something else?

 

 

Link to comment
Share on other sites

Hey @nurkka thx for your question!

      $rf = $this->rockfrontend();
      if ($rf) $rf->styles()->addAll('/site/templates/RockPageBuilder', '', 3);

this is what adds all blocks' .less files to the frontend. The default styles() array will compile files to main.css; I could either add a config setting to prevent this, or a module setting, or make it hookable.

What would be the ideal workflow/result for you?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...