Symfony Assetic troubleshooting with the LESS filter

Installing Symfony doesn’t take long, but depending on your Composer capabilities on your web server, you may run into issues if you don’t install LESS and Node properly. Find the Node modules path by typing in the Linux command line:

find / -name node_modules -type d

Then set to the node_paths option:

assetic:
  filters:
    less:
      node_paths: /usr/lib/node_modules
      compress:   true
      apply_to:   "\.less$"

To test Assetic and Less together, in command line, run this to see if there are any debug errors:

app/console assetic:dump --env=dev

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

Your email address will not be published. Required fields are marked *