Is it possible to hook on drush cache:rebuild
before the command is executed? I've seen some hooks for afterwards, but I am trying to compile my less
files into css
before cache the is rebuild. I'd be fine with it simply being just for the drush cr
command in terminal, any way to automate the compiling on cache rebuild would be great!
All of the modules I've found for compiling less files requires you to do it manually, but not whenever cache is rebuilt like in D7.
Any ideas on how this could be accomplished?
drupal_flush_all_caches()
in the end. – leymannx Aug 11 '20 at 18:11