1

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
asked Nov 29, 2017 at 10:14
3
  • First, check you can see your updated css in from browser URL if not then please do CTRL + F5 and check. Commented Nov 29, 2017 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. Commented Nov 29, 2017 at 10:26
  • Have you check in current theme? Can you tell me CSS path which you try in browser? Commented Nov 29, 2017 at 10:30

1 Answer 1

1

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

answered Nov 29, 2017 at 12:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.