Unable to locate AssetMix file: /https://example.com/js/app.js.
I wrote these tests in case they would be useful.
/**
* Test `css()` function returns proper url
*
* @return void
*/
public function testStyleTagWithExternalBaseUrl()
{
Configure::write('App.cssBaseUrl', 'https://example.com/css/');
$this->_copyWithoutVersion();
$result = $this->AssetMix->css('main');
$this->assertStringContainsString('https://example.com/css/main.css', $result);
}
/**
* Test `script()` function returns proper url
*
* @return void
*/
public function testScriptTagWithExternalBaseUrl()
{
Configure::write('App.jsBaseUrl', 'https://example.com/js/');
$this->_copyWithoutVersion();
$result = $this->AssetMix->script('app');
$this->assertStringContainsString('https://example.com/js/app.js', $result);
}