Magento – Magento2: After delete pub/static folder and making deploy, no css files found

cssgruntmagento2

I use Magento 2 custom theme and when I made changes to .less file, I wanted to compile files, so I deleted pub/static folder and made deploy: php bin/magento setup:static-content:deploy. After that, no css files are found in pub/static/frontend/<Theme>/default/css. Also, when I use grunt less, I got errors:

>> Destination pub/static/frontend/Magento/blank/en_US/css/styles-m.css not written because no source files were found.
>> Destination pub/static/frontend/Magento/blank/en_US/css/styles-l.css not written because no source files were found.
>> Destination pub/static/frontend/Magento/blank/en_US/css/email.css not written because no source files were found.
>> Destination pub/static/frontend/Magento/blank/en_US/css/email-inline.css not written because no source files were found.

I am in a developer mode.

Does anyone have any solution for this?

Thank you

Best Answer

You need to run grunt exec and then grunt less.

Related Topic