You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel Mix provides a fluent API for defining Webpack build steps for your Laravel application using several common CSS and JavaScript pre-processors.
// I expect to get as result: /example/dist/main.js?id=ecfe06d840525bff34b2$manifestPath = 'mix-manifest.json';
$relativeUrl = '/example';
$versionStrategy = newJsonManifestVersionStrategy($manifestPath);
$package = newPathPackage($relativeUrl, $versionStrategy);
// returns /dist/main.js?id=ecfe06d840525bff34b2 because leading slashvar_dump($package->getUrl("/dist/main.js"));
// returns "/example/dist/main.js" because no match in manifestvar_dump($package->getUrl("dist/main.js"));