magento2: Grunt watch does not work on preprocessed files
This is a follow up to #1619 - the error was not fully fixed there. You can see it in the code of the patch: Only if the file was not changed trough preprocessing, a symlink is created. If it was, still a copy is created and grunt watches the wrong files for changes.
Preconditions
- Magento 2.1.0
- Theme with preprocessed file, for example a custom
Magento_Theme/module.lesscontains //@magento_import ‘module/_collapsible_navigation.less’;
Steps to reproduce
- Execute grunt watch
- Change the above module.less
- grunt watch does not detect the change
- ls reveals: in
pub/staticthere is a (modified) copy of the file, not a symlink.grunt watch -vreveals, onlypub/staticbut notappis watched.
Expected result
- Grunt should watch all file changes
Actual result
- Grunt does not watch changes to all files, because some files are not symlinks
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 11
- Comments: 21 (9 by maintainers)
@amenk, thank you for reporting the issue, the internal ticket is created MAGETWO-69571.
It has been 4 months, any update on this from the Magento team?
@amenk, thank you for reporting this issue. I reproduced your issue. Here is the output:
I do not see any
app/design/frontend/*so it is still the issue.Hi, I had the same problem here, grunt watch was not “seing” my changes / uploads. It was working great until I updated to Magento 2.2.0.
I weirdly had to remove
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,300i,400,400i,500,500i,700,700i,900,900i');from my CSS.