diff --git a/vite.md b/vite.md index 4c165f22e21..d439c8f9dd2 100644 --- a/vite.md +++ b/vite.md @@ -824,6 +824,9 @@ Out of the box, Laravel's Vite plugin uses sensible conventions that should work ->useBuildDirectory('bundle') // Customize the build directory... ->useManifestFilename('assets.json') // Customize the manifest filename... ->withEntryPoints(['resources/js/app.js']) // Specify the entry points... + ->createAssetPathsUsing(function (string $path, ?bool $secure) { // Customize the backend path generation for built assets... + return "https://cdn.example.com/{$path}"; + }) }} ```