I have my magento 2 site in develop mode and have disabled the cache but my theme is not picking up changes to my css file.

Is there anyway to update the css without the need to:

Remove pub/static [keep the .htaccess]
Remove var/cache
Remove var/generation
Remove var/page_cache
Remove var/view_preprocessed
run php bin/magento setup:static-content:deploy
| improve this question | | | | |
  • First, check you can see your updated css in from browser URL if not then please do CTRL + F5 and check. – Keyur Shah Nov 29 '17 at 10:21
  • Yeah its not updating and showing my old css, clearing browser cache doesn't resolve this. I have to run the above commands to be able to get the css to be the latest version. – heady12 Nov 29 '17 at 10:26
  • Have you check in current theme? Can you tell me CSS path which you try in browser? – Dhiren Vasoya Nov 29 '17 at 10:30

I'll suppose that you have a custom theme and you have this theme assigned to store in admin.

If you have created a plain css file you need to add it in theme layout file, if you had overriden less files you might use grunt: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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