How to I set the location folder of Control Panel resources?
Thank you @Brandon Kelly for the solution:


  That’s because @webroot is only reliable on web requests. To fix,
  update your resourceBasePath config setting to a real path:
  
  'resourceBasePath' =&gt; dirname(__DIR__) . '/web/cpresources'