Vite: Output Ressource URLs as absolute path in development? #4619
Unanswered
svenhoerig
asked this question in
Help
Replies: 1 comment 4 replies
-
Hey @svenhoerig! 👋🏻 Could you please give us your use case that needs to have those resources as absolute URLs? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my project (AdonisJS 6 + Vite) I have the situation that the resource URLs have to be output as absolute URLs. The resources are integrated into the HTML using
@vite(['resources/css/app.css', 'resources/js/app.js'])
. But all my attempts have failed, the CSS and JS files are always, at least in development mode, only integrated as relative and not absolute URLs.Is there a way to change this?
Beta Was this translation helpful? Give feedback.
All reactions