Using magento 2.1.10 with composer your module failed to load for me, complaning it couldn't find files because in production mode your profiler isn't expecting the DIR for root.phtml to be in /var/view_processed.
Switching to this method should ensure that your module won't fail on production mode, at least not for the above reason.
Swap to use getViewFileUrl
Using magento 2.1.10 with composer your module failed to load for me, complaning it couldn't find files because in production mode your profiler isn't expecting the DIR for root.phtml to be in /var/view_processed.
Switching to this method should ensure that your module won't fail on production mode, at least not for the above reason.