skip to Main Content

I’m working on an theme based on blank theme (Magento 2.2.5) on developer mode as well as production mode the theme less files are not compiling using:

rm -R pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy 

Images are loaded ok, not css. No errors using verbose. The only way is using grunt both for development and production for my theme what can i do?

2

Answers


  1. Solving this issue is actually simple; just run the following command

    Clear the var/cache and var/view_preprocessed directories by deleting the directory in

    sudo rm -R pub/static/*
    sudo rm -R var/cache
    

    if you have to (sudo rm -R generated/code)

    sudo rm -R var/view_preprocessed
    sudo php bin/magento setup:upgrade
    sudo php bin/magento setup:static-content:deploy -f
    
    Login or Signup to reply.
  2. If you are in production mode, delete var/view_preprocessed and var/cache, run the CLI for setup upgrade and then static-content deploy. That should work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search