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

[feature]: Assets from multiple directories #652

Open
marcus-pousette opened this issue Apr 3, 2024 · 3 comments
Open

[feature]: Assets from multiple directories #652

marcus-pousette opened this issue Apr 3, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@marcus-pousette
Copy link

marcus-pousette commented Apr 3, 2024

Is your feature request related to a problem? Please describe.
I am trying to create a Web Worker from a script that lives in a dependency, but in order to server this file I somehow need to make it an asset of the polka server. It seems like I now have to copy it into the root directory of the project I want to test to make it work

Describe the solution you'd like
I would be great if I somehow could bundle and provide it without having to manually copy the the asset to the same folder as cwd. The --assets command does not do what I expect, it seems to just rewrite where the asset folder is.

Describe alternatives you've considered
Make a script that copies the worker scripts into some temp folder that is inside of root folder of the project

@marcus-pousette marcus-pousette added enhancement New feature or request help wanted Extra attention is needed labels Apr 3, 2024
@hugomrdias
Copy link
Owner

hugomrdias commented Apr 3, 2024 via email

@marcus-pousette
Copy link
Author

marcus-pousette commented Apr 3, 2024

Yeap, but that will also make it point away from cwd..

Did a quick PR to show what I mean #653

Naming is not really a problem I think, because if you serve the files under a folder the path will have folder in its name.

@marcus-pousette
Copy link
Author

friendly bump :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants