I often work with requirejs-config.js file for modules to define custom mapping and/or javascript mixins. It would be nice if the watch command can detect the changes in modules and themes requirejs-config.js files and remove the main requirejs-config.js file in pub/static theme dir. Magento will regenerate that file on page load and apply new contents.
Currently I used a custom js script to what for changes in app/code/*/*/view/frontend/requirejs-config.js and then remove the files in pub/static/frontend/*/*/*/requirejs-config.js when changes are detected.
Another suggestion is allowing custom configuration file that define watch and remove patterns for automatic cleanup.
I often work with
requirejs-config.jsfile for modules to define custom mapping and/or javascript mixins. It would be nice if the watch command can detect the changes in modules and themesrequirejs-config.jsfiles and remove the mainrequirejs-config.jsfile inpub/statictheme dir. Magento will regenerate that file on page load and apply new contents.Currently I used a custom js script to what for changes in
app/code/*/*/view/frontend/requirejs-config.jsand then remove the files inpub/static/frontend/*/*/*/requirejs-config.jswhen changes are detected.Another suggestion is allowing custom configuration file that define watch and remove patterns for automatic cleanup.