
Magento2.x: Re generate css files in pub/static folder
If you made a css change into your files of your theme, and you don’t see those changes in the pub/static folder, so it’s not being rendered on the frontend. You will need to proceed as follows:
- First of all, try doing a php bin/magento setup:static-content:deploy.
- If the previous command did not work, try doing the following:
12345678rm -rf pub/static #[Keep the .htaccess backed up and copy it again]rm -rf var/cacherm -rf var/composer_homerm -rf var/generation # or rm -rf generatedrm -rf var/page_cacherm -rf var/view_preprocessedphp bin/magento setup:static-content:deploy