cancel
Showing results for 
Search instead for 
Did you mean: 

RequireJS config for theme doesn't update automatically

0 Kudos

RequireJS config for theme doesn't update automatically

Feature request from ravbetsky, posted on GitHub Mar 01, 2016

Each change in requirers-config.js of our module doesn't take any effect. After we had removed pub/static/_requirejs/frontend/Magento/luma/en_US/requirejs-config.js our changes applied.

1 Comment
New Member

Comment from guz-anton, posted on GitHub Jul 15, 2016

Hi @ravbetsky , As you may know same behavior has translation.json file. Yes, they are not flushed if any source files are changed.

Could you imagine, describe how the issue could be solved?

For the generation /_requirejs/../requirejs-config.js responsive PHP app. But PHP app has no mechanizm for watching file's changes.

Frontend (via Grunt tasks) has ability for watching file's changes. But it doesn't know about rules why /_requirejs/../requirejs-config.js should be flushed.

So there is no pretty solution.

Maybe you have any ideas?