What's the best approach to get all bundled files inside the same folder? #8281
Closed
andyjessop
started this conversation in
General
Replies: 1 comment
-
The solution is simply not to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
EDIT: Answered below
Let's say I have a folder structure like this:
And in my
build.ts
, I have:This is going to output something like:
But that's not quite what I want, because I can't just deploy the
dist
folder now, as the file imports are all relative. What I want is this:With the imports rewritten to be relative to the
dist
folder.What is the best approach for this? Do I need a plugin? If so, can you recommend any plugin hooks and how to use them?
Beta Was this translation helpful? Give feedback.
All reactions