Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: support generating custom manifest paths #297

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

innocenzi
Copy link
Owner

This PR introduces a way of customizing the logic to find the path to a manifest file.

Vite::findManifestPathWith(function (Configuration $configuration) {
    // Custom manifest path generation logic
    $buildPath = $configuration->getConfig('build_path');

    return base_path($buildPath . '/public_html/manifest.json'); // adapt for your needs
});

Closes https://github.com/innocenzi/laravel-vite/issues/296

@innocenzi innocenzi merged commit de0ad85 into main Jul 21, 2022
@innocenzi innocenzi deleted the feat/custom-manifest-path branch July 21, 2022 15:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vite manifest not found at: /home/???????/cart_shop/public/build/manifest.json
1 participant