Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Generate custom manifest.json file name #149

Closed
kitro opened this issue Sep 24, 2022 · 1 comment
Closed

Generate custom manifest.json file name #149

kitro opened this issue Sep 24, 2022 · 1 comment
Assignees

Comments

@kitro
Copy link

kitro commented Sep 24, 2022

Vite provides a way to specify the name of the manifest.json, many Laravel projects using a modular structure inside each module have their own vite.config.js file. Currently, the default file name is manifest.json I think it will be nice to get the file name from userConfig.build?.manifest? .

For the Vite facade need to specify the manifest.json file name if it's different from manifest.json.

the Laravel mix has a plugin laravel-mix-merge-manifest to merge bundled files into one manifest.json.

@jessarcher
Copy link
Member

I've created #150 that will respect the manifest config if provided 👍

For the Vite facade, you can extend it and override the manifestPath method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants