0

I have found that the less files are not compiling in my custom theme. at all. originally I discovered the problem when I made changes to my _extend. less file and no changes occurred, but now I have found that none of the .less files in my app/...web/source/CSS folder are compiling after the first loading of my website.

After downloading a fresh backup, I immediately made some changes to the CSS before opening the website online. this worked, but any consequent changes had no impact. I reversed the changes I had made and re-loaded the page by opening a new window. This reverted my original change, but any time after this no change is evident.

I am using xampp, with Magento 2.3.0 installed.

I have tried every fix found on this website and regular stack overflow, including clearing the cache, var folders and more using both commands and straight-up deleting the folders.

Please help.

asked Dec 16, 2019 at 20:15

3 Answers 3

0

Try using my extension to clear static content

https://github.com/DominicWatts/ClearStatic

Then try compiling again using static content deploy command

answered Dec 16, 2019 at 22:38
0

You can try this theme for less compilation from Github.

answered Dec 18, 2019 at 6:49
2
  • Can you pls help me with the same issue thanks magento.stackexchange.com/q/330991/57334 Commented Feb 13, 2021 at 6:06
  • Send your code here Commented Feb 14, 2021 at 7:19
0

I have found a solution.

When making any change to the .less files within your custom theme, follow the following four steps.

  1. Delete the files within: <vendor>\var\view_preprocessed\pub\static\frontend\<vendor_theme>\en_NZ\css
  2. Delete the files within: <vendor>\var\cache
  3. Delete the files within: <vendor>\pub\static\frontend\<vendor_theme_name>\en_NZ\css
  4. If in production mode, run the setup:static-content:deploy command. If in developer mode, simply refresh the page you are attempting to style.

After following these steps, I was able to observe the changes I made to my website.

answered Dec 17, 2019 at 3:10

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.