I'm having issues with getting my custom Magento 2 theme to compile correctly.
I installed it on a remote server and configured it. All is working on that end. I can flush the cache and deploy the static - it seems fine.
However when I download the files for local development the CSS and JS is not compiling correctly. The only thing I have changed is the url in the core_config_data table to http://localhost
- When I switch the database to a fresh install of Magento and do a static deploy and remove all var/cache
etc files it loads back fine.
However, when I change the env.php
file back to the downloaded DB with the edited URL and I flush the cache it goes back to not loading any CSS files.
Have followed the guides here.
Magento 2 CSS and JavaScript not loading from correct folder
Magento 2: Not loading CSS and JS after successful installation in windows