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

Comments

Leave a Reply

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