Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed magento 2 and set developer mode, then i have installed one module that contains css and js files. Module works fine and css and js files are rendering from pub/static folder. Now i have made css changes in module directory css file and run command

php bin/magento setup:static-content:deploy

but magento is not making my new changes in pub/static css files so i'm getting old css file contents. Does anyone know how to re generate the whole css file in pub/static folder?

share|improve this question

Remove pub/static

Remove var/cache

Remove var/composer_home

Remove var/generation

Remove var/page_cache

Remove var/view_preprocessed

run php bin/magento setup:static-content:deploy

share|improve this answer

Remove folder that contain your theme in pub/static/frontend
clear cache
You can use grunt to watch apply stylesheets. Read here

share|improve this answer

I have just delete the css files from pub/static folder and run the command php bin/magento setup:static-content:deploy it will re generate the same file with latest changes.

share|improve this answer

Remove pub static.

give pub/static 777 permission

clear cache.

and run php bin/magento setup:static-content:deploy

you will see new css.

NOTE:give proper folder and file permission.

I hope this will help you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.