I am working with Magento2 and have the problem, that my changes are only visible after a full php bin/magento setup:static-content:deploy en_US
.
Prerequisites:
- Magento 2.1.0
- Linux VM with Apache / PHP7
- Developer mode active
- Caches inactive and flushed
I changed a html-file for a ko-template in a custom module, and tried to see the changes in frontend without a full static deploy. But it still displayed the old code. According to different people i asked and digged through blogs / docs i found out, i should remove these directories:
- pub/static/frontend
- var/di
- var/view_preprocessed
- var/generation
The .htaccess in pub/static was not removed. But after doing this, no JS / CSS files were available in browser and also were nothing was generated in pub/static/frontend except the _requirejs directory.
I ran out if ideas and working like this is really slow and annoying. According to other developers, it should work like this. What is the correct workflow here?
I apprechiate your help!
pub/static
. What should happen is a symlink to the working file should be created when you are working on a file, but that doesn't happen for me. My work around is just to edit the .html and .js files in pub/static till i get what i need and then copy that code over to the file in my theme. But this is just my experience so far, so it's not a real answer.