Added injecting of assets only in debug mode