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

Keep json asset files in deployment artifact #35

Merged
merged 1 commit into from
Jan 23, 2020
Merged

Keep json asset files in deployment artifact #35

merged 1 commit into from
Jan 23, 2020

Conversation

harrygulliford
Copy link
Contributor

Livewire looks for a manifest.json file to check if its JS assets are published and current (reference). I've loosened the strictness of which files should be kept in the /public path to include all *.json files rather than just mix-manifest.json.

Json files are typically only a few bytes in size, however, you'd prefer it to be a bit more specific, I can update to include only *manifest.json files.

If this solution is not ideal or too specific, would a include: key in the manifest be considered?

@taylorotwell taylorotwell merged commit 287dbf6 into laravel:master Jan 23, 2020
simensen added a commit to simensen/vapor-cli that referenced this pull request Sep 12, 2020
This is only triage to get Laravel Mix working again. Additional work
may be required to get Livewire's `manifest.json` working correctly.

This reverts laravel#67 f2e34ab which was an
attempt to fix laravel#35 758214a.

The end result of laravel#67 was mix-manifest.json being included in the asset
artifact and being removed from the code deployment artifact. This meant
Laravel Mix applications would fail as they expect to be able to read
the contents of `public/mix-manifest.json` at runtime.

This does not attempt to fix the original issue laravel#35 was trying to
address. laravel#35 would have included `public/manifest.json` in the code
deployment artifact (the desired behavior) but laravel#67 would ensure both
`public/manifest.json` and `public/mix-manifest.json` would end up in
the asset artifact.

Unclear if `manifest.json` is needed by both client (so needs to be a
part of the asset artifact) and code (so also needs to be in the code
deployment artifact) so not trying to make that decision now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants