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

Add info that vendor must be accessible via HTTP #8

Closed
tbreuss opened this issue Sep 8, 2018 · 4 comments
Closed

Add info that vendor must be accessible via HTTP #8

tbreuss opened this issue Sep 8, 2018 · 4 comments

Comments

@tbreuss
Copy link

tbreuss commented Sep 8, 2018

You should note somewhere that the vendor directory must be accessible via HTTP.
If it's not accessible several 404 http errors appear and - of course - the debug bar will not work.
This information is neccessary because often (or should I say normally) the vendor is not accessible via HTTP.

@oscarotero
Copy link
Member

That's not entirely correct. You can use this middleware without having the vendors in an http accessible place using these two ways:

  • The option inline dumps the css/js code in the html
  • Or if you're using a front controller pattern, these files not accessible by the server might be handled by your php code so they are read and served by this middleware, as you can see here

Anyway, it's a good idea to explain these techniques in the readme.

@tbreuss
Copy link
Author

tbreuss commented Sep 10, 2018

Thank you. This works for me with inline set to true, except including the fonts.

fonts

But, as you said an info about these techniques would be helpful.

@oscarotero
Copy link
Member

Yes, fonts are not inlined, that's why is better to use the front controller technique.

@tbreuss tbreuss closed this as completed Mar 2, 2020
@tbreuss
Copy link
Author

tbreuss commented Mar 2, 2020

Solved

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

No branches or pull requests

2 participants